https://bugs.documentfoundation.org/show_bug.cgi?id=92459
Bug ID: 92459
Summary: o3tl: replace depreciated unary_function and
binary_function
Product: LibreOffice
Version: unspecified
Hardware: Other
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
include/o3tl/compat_functional.hxx includes 5 classes that are derived from
unary_function/binary_function, which is depreciated since C++11. The classes
are as follows.
- project1st
- project2nd
- select1st
- select2nd
- unary_compose - https://bugs.documentfoundation.org/show_bug.cgi?id=91112
will fix this
Search for all instances of project1st, project2nd, select1st, and select2nd
and replace them using a lambda expression as recommended in the following.
- http://en.cppreference.com/w/cpp/utility/functional/unary_function
- http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3145.html
Unless I'm mistaken, once tdf#91112 and the above have been resolved
include/o3tl/compat_functional.hxx may be removed.
I'm new to contributing to LibreOffice. If you disagree with me or have any
suggestions please let me know. I will not take offense. All advice and
suggestions are welcome.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs