boost::bind is used to create function objects. the bundled boost headers require a lot of patches to suppress warnings so it would reduce the maintenance burden here to use standard C++11 features instead, and it would also make incremental rebuilds faster whenever boost is modified/patched. C++11 has both built-in lambda syntax to create function objects, and std::bind in <functional> which is very similar to boost::bind. the C++11 lambdas have the advantage that they are built-in syntax so are the fastest to compile; they are also often easier to read in the more complex nested boost::bind cases. there is one obscure pit-fall here: in very rare cases the function is passed as an argument to a preprocessor macro. lambdas may not work in this case because the preprocessor interprets commas in the capture list as macro argument separators and compilation fails. use std::bind in such cases. to find the offending code just "git grep boost::bind"
working on it
no need to self-assign: multiple contributors can work on this in parallel without collisions
Albert Thuswaldner committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=083c865f9af70a12dfed52b07785e303eb61b397 tdf#93243 replace boost::bind with C++11 lambdas in drawsh2.cxx It will be available in 5.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
n.r.pearson committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=fa4871b7436c159c9d206d910f899d8af3044d72 tdf#93243 replace boost::bind with C++11 lambdas in unoshape.cxx It will be available in 5.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
n.r.pearson committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=ab4bb0c0dd74a537a7e7cba5b0d21e2b9d57c8b3 tdf#93243 replace boost::bind with C++11 lambdas in Metadatable.cxx It will be available in 5.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
n.r.pearson committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=92ffd0acea035dc3916fc001b4dcd901a8a7a9d2 tdf#93243 replace boost::bind with C++11 lambdas in SidebarController.cxx It will be available in 5.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Albert Thuswaldner committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=7d82dfca4d78841930a4411371c3d211badeccdb tdf#93243 replace boost::bind with C++11 lambdas in excimp8.cxx It will be available in 5.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Albert Thuswaldner committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=d5dc2a2a726dd151fb30fae25478511dce929dfa tdf#93243 replace boost::bind with C++11 lambdas Cell...PropertyPanel.cxx It will be available in 5.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Daniel Robertson committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=91e0161dc5a0de0dcce1696aea318d919d5d04a1 tdf#93243 slideshow: replace boost::bind It will be available in 5.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Daniel Robertson committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=4038b27a0be01fbf6eab9b28cfe00f29e8eba1b7 tdf#93243 slideshow: boost::bind -> C++11 lambdas It will be available in 5.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Daniel Robertson committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=39c7826c814fb8043942f5d9e1f1f049641865e8 tdf#93243 slideshow: boost::bind -> C++11 lambdas It will be available in 5.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Sahas committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=d50fa33c6b9bf65cd884090a45ad917aadb7c674 tdf#93243 - replaced some boost::bind with C++11 lambdas It will be available in 5.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Fabio Buso committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=76e75d2dd6dafe55fd1740693529640652ed6455 tdf#93243 replace boost::bind with c++11 lambdas in toolkit/ It will be available in 5.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Fabio Buso committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=c21ddcdb30b8dd7be56176e00bc2d4780cb342e1 tdf#93243 replace boost::bind with c++11 lambdas in vcl/source tree It will be available in 5.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Migrating Whiteboard tags to Keywords: (easyHack, difficultyBeginner, skillCpp, topicCleanup) [NinjaEdit]
JanI is default CC for Easy Hacks (Add Jan; remove LibreOffice Dev List from CC) [NinjaEdit]
The following openwork search, gives the missing places: http://opengrok.libreoffice.org/search?q=boost%3A%3Abind&project=core&defs=&refs=&path=&hist=
Hello, I would like to participate on this bug. Is it still up to date? This is my first interaction with LibreOffice. For submitting patches, shall I follow these instructions? https://wiki.documentfoundation.org/Development/GetInvolved Thank you
(In reply to Helena Svobodová from comment #18) > Hello, > > I would like to participate on this bug. Is it still up to date? > > This is my first interaction with LibreOffice. For submitting patches, shall > I follow these instructions? > https://wiki.documentfoundation.org/Development/GetInvolved > > Thank you Welcome, the bug should be up to date, of course there has been some activity, so you need to look for the places to change. The GetInvolved page is the "patch to get a patch merged" :-) and are also updated. Feel free to ping me on the mailing list, if you have problems. rgds jan i.
Hi I'm working on this bug and i got a question. in the file /home/unknowner21/libreoffice2/reportdesign/source/ui/inspection/GeometryHandler.cxx I'm trying to change the line number 1639 : ::boost::bind( &DefaultFunction::getName, _1 )); but the problem is the function getName from DefaultFunction got no parameter and we have the _1 that indicates the first parameter of this function if I'm not mistaken. can I have some clarification about that ? thank you
(In reply to Unknowner21 from comment #20) > can I have some clarification about that ? well it needs a parameter then. as it happens, i've converted this file 2 days before you wrote this comment, so you can look at this commit for the answer :) https://gerrit.libreoffice.org/gitweb?p=core.git;a=commitdiff;h=3e61eb69ac1cff727072011e228eabfc8bc055c0 ... actually now there are just 2 files left that use boost::bind, and both of them are horrible boost::spirit line noise code which nobody should touch anyway if they want to retain their sanity. this stuff drives even the most experienced developers to despair, as can be seen in https://gerrit.libreoffice.org/#/c/21969/3 so i'll close this easy-hack.
Helena Svobodova committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=f90b77d0f27294b00ceb58b21f4d644fa84a3289 tdf#93243 Replacing boost::bind with C++11 lambdas It will be available in 5.3.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.