Boost logo

Boost :

Subject: Re: [boost] Boost numeric conversion - unary function deprecated or removed for C++17
From: Billy O'Neal (VC LIBS) (bion_at_[hidden])
Date: 2016-07-05 14:16:47


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_at_[hidden]> on behalf of Paul A. Bristow <pbristow_at_[hidden]>
Sent: Monday, July 4, 2016 9:48 AM
To: boost_at_[hidden]
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%2fstackoverflow.com%2fquestions%2f33114656%2freplacement-for-binary-function&data=01%7c01%7cbion%40microsoft.com%7c2f7dfe99ed034c082fc708d3a42b057c%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=JGLbP1KX1X8i0%2fRKX7NUcZOWw4Cr0wb7LZnJ%2bzHCtgQ%3d

https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fstackoverflow.com%2fquestions%2f33114656%2freplacement-for-binary-function&data=01%7c01%7cbion%40microsoft.com%7c2f7dfe99ed034c082fc708d3a42b057c%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=JGLbP1KX1X8i0%2fRKX7NUcZOWw4Cr0wb7LZnJ%2bzHCtgQ%3d

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.org%2fmailman%2flistinfo.cgi%2fboost&data=01%7c01%7cbion%40microsoft.com%7c2f7dfe99ed034c082fc708d3a42b057c%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=AGm%2fN0faVyUwedvgMVjhVZnsAAVwjjrNdAOCIbnJ5Dc%3d

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk