Boost numeric conversion - unary function deprecated or removed for C++17
I need to use C++17 (or MSVC std:c++latest) for other reasons, but I am blocked on MSVC by failure to compile converter.hpp It works OK on GCC 6.1.1 but not on VS2015 update 3 http://stackoverflow.com/questions/33114656/replacement-for-binary-function http://stackoverflow.com/questions/33114656/replacement-for-binary-function I suspect that GCC has not yet removed the deprecated unary_function but that MSVC correctly has removed it? Updating this looks above my pay grade. Can anyone help please. Paul --- Paul A. Bristow Prizet Farmhouse Kendal UK LA8 8AB +44 (0) 1539 561830
c++latest turns off _HAS_AUTO_PTR_ETC, which removes all the removed stuff like unary_function, yes. The fix is to remove use of unary_function and add the typedefs manually.
Billy3
________________________________
From: Boost
On 7/5/2016 14:16 PM, Billy O'Neal (VC LIBS) wrote:
c++latest turns off _HAS_AUTO_PTR_ETC, which removes all the removed stuff like unary_function, yes. The fix is to remove use of unary_function and add the typedefs manually. This seems reasonable. Is there an appropriate BOOST_XXX macro which I could use to branch the use of unary_function for pre C++17 compilers?
Brandon
participants (3)
-
Billy O'Neal (VC LIBS)
-
Brandon Kohn
-
Paul A. Bristow