https://bugs.documentfoundation.org/show_bug.cgi?id=165234
Bug ID: 165234
Summary: Use lambdas instead of boost::bind
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
Description:
There are various places in the code where boost:bind is used. Nowadays, C++
standard library provides std::bind. But, as described in tdf#165233, it is
preferred to use lambdas instead of std::bind.
$ git grep boost::bind|wc -l
35
The task here is to convert usages of boost::bind to lambda expressions. You
can pick one of the above instances, and change it to use lambdas. You have to
make sure that the code behavior remains the same after your change.
Example:
This is an example of such a change in LibreOffice C++ code, in filter module.
filter: convert boost::bind
577b4e499b870a8afd56f2d9ac1fe0313162bf8d
More information:
Boost.Bind
https://www.boost.io/library/latest/bind/
Lambda expression in C++
https://www.geeksforgeeks.org/lambda-expression-in-c/
--
You are receiving this mail because:
You are the assignee for the bug.