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 <boost-bounces@lists.boost.org> on behalf of Paul A. Bristow <pbristow@hetp.u-net.com> Sent: Monday, July 4, 2016 9:48 AM To: boost@lists.boost.org Subject: [boost] 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 https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fstackoverflo... https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fstackoverflo... 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 _______________________________________________ Unsubscribe & other changes: https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2flists.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