2 Feb
2014
2 Feb
'14
12:43 a.m.
On Sat, Feb 1, 2014 at 4:35 PM, Fletcher, John P
Is there a way to incorporate C++11 only code into tests or the actual headers.
If so, is there an example of how to do it in Boost?
This is what I do it in Boost.Smart_Ptr tests around C++11 only features: https://github.com/boostorg/smart_ptr/blob/develop/test/make_unique_args_tes... e.g. Any tests relating to std::unique_ptr features are entirely enabled only when BOOST_NO_CXX11_SMART_PTR is not defined. Any specific test cases within that code are enabled only when certain C++11 features are present; e.g. if BOOST_NO_CXX11_VARIADIC_TEMPLATES is not defined. Glen