From 3db4654b44f03d6ae55f9f6038d1f145ee645932 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sun, 6 Nov 2016 10:19:17 +0000 Subject: [PATCH] Remove unary/binary_function from examples/documentation They are being removed from the standard in C++17, and were never really required. --- doc/src_code/dictionary.cpp | 2 -- doc/src_code/point1.cpp | 1 - examples/case_insensitive.hpp | 2 -- 3 files changed, 5 deletions(-) diff --git a/doc/src_code/dictionary.cpp b/doc/src_code/dictionary.cpp index 1f8ead92..dece3089 100644 --- a/doc/src_code/dictionary.cpp +++ b/doc/src_code/dictionary.cpp @@ -10,7 +10,6 @@ //[case_insensitive_functions struct iequal_to - : std::binary_function { bool operator()(std::string const& x, std::string const& y) const @@ -20,7 +19,6 @@ }; struct ihash - : std::unary_function { std::size_t operator()(std::string const& x) const { diff --git a/doc/src_code/point1.cpp b/doc/src_code/point1.cpp index 0d17c1f5..dd562264 100644 --- a/doc/src_code/point1.cpp +++ b/doc/src_code/point1.cpp @@ -18,7 +18,6 @@ } struct point_hash - : std::unary_function { std::size_t operator()(point const& p) const { diff --git a/examples/case_insensitive.hpp b/examples/case_insensitive.hpp index 0204a221..83a388d8 100644 --- a/examples/case_insensitive.hpp +++ b/examples/case_insensitive.hpp @@ -19,7 +19,6 @@ namespace hash_examples { struct iequal_to - : std::binary_function { iequal_to() {} explicit iequal_to(std::locale const& l) : locale_(l) {} @@ -34,7 +33,6 @@ namespace hash_examples }; struct ihash - : std::unary_function { ihash() {} explicit ihash(std::locale const& l) : locale_(l) {}