replace members of std::allocate which are deprecated in c++17 by their cousins from std::allocator_traits.

Signed-off-by: Daniela Engert <dani@ngrt.de>
This commit is contained in:
Daniela Engert
2017-12-17 09:59:59 +01:00
parent 468fd52b43
commit 4a6944adbc
2 changed files with 14 additions and 0 deletions
+5
View File
@@ -13,6 +13,11 @@
#include <memory>
#include <boost/shared_ptr.hpp>
#ifdef BOOST_MSVC
// none of the deprecated members of std::allocate are used here
# pragma warning(disable:4996) // Various members of std::allocator are deprecated in C++17
#endif
using std::size_t;
class sum