12.07.2013 20:26, John Maddock пишет:
and then the BOOST_FINAL/BOOST_OVERRIDE macros become trivial. The process for adding new macros is documented here: http://www.boost.org/doc/libs/1_54_0/libs/config/doc/html/boost_config/guide... Please note that Visual Studio knows "final" since vc11 and knows "sealed" since at least vc7. So, it's reasonable to write something like
#if _MSC_VER < 1700 // 1700 == VC++ 11.0 # define BOOST_NO_CXX11_FINAL # define BOOST_FINAL sealed #endif somewhere in the config/compiler/visualc.hpp and something like #ifdef BOOST_NO_CXX11_FINAL # ifndef BOOST_FINAL # define BOOST_FINAL # endif #else # define BOOST_FINAL final #endif in the config/suffix.hpp. See http://msdn.microsoft.com/en-us/library/vstudio/0w2w91tf%28v=vs.110%29.aspx for details. -- Best regards, Sergey Cheban