test icon indicating copy to clipboard operation
test copied to clipboard

WIP: use std::function if c++11 <functional> is available

Open jhunold opened this issue 8 years ago • 2 comments

All except one test green. test-tree-management-test is failing as somehow the conversion or more exactly the display of std::function is not working as expected in BOOST_TEST( tc1->p_test_func ); in line 118 Tested c++03 compatibility with gcc-6.2 in c++03 mode

jhunold avatar Apr 07 '17 09:04 jhunold

Hi, thanks for the PR. I fail to understand why should we move to std::function, is there any rationale? doesn't boost::function do the job?

raffienficiaud avatar May 23 '17 06:05 raffienficiaud

Current clang is starting to warn about deprecated c++03/c++98 features used in the implementation boost::function. The easiest way to disable them is to simply switch to std::function if it is available. And I think that using the std:: where possible is the correct long term solution.

jhunold avatar May 23 '17 14:05 jhunold