From b90a28f0e1e29b08831f85ad5da23d3d59bca951 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Fri, 7 Oct 2016 23:07:37 -0500 Subject: [PATCH 1/3] Add, and update, documentation build targets. --- doc/Jamfile.v2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/Jamfile.v2 b/doc/Jamfile.v2 index eb9c35d..dda8f39 100644 --- a/doc/Jamfile.v2 +++ b/doc/Jamfile.v2 @@ -117,3 +117,11 @@ boostbook standalone_string_ref # How far down we go with TOC's generate.section.toc.level=1 ; + +############################################################################### +alias boostdoc ; +explicit boostdoc ; +alias boostrelease : + standalone_base_from_member standalone_compressed_pair + standalone_declval standalone_string_ref ; +explicit boostrelease ; From ff445c0ecedad0540be832102165ff9cc28ab53f Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 6 Nov 2016 14:38:13 +0200 Subject: [PATCH 2/3] Remove std::binary_function use, it has been removed in C++17 --- base_from_member_test.cpp | 1 - include/boost/utility/compare_pointees.hpp | 12 ++++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/base_from_member_test.cpp b/base_from_member_test.cpp index 2598df5..815cc31 100644 --- a/base_from_member_test.cpp +++ b/base_from_member_test.cpp @@ -46,7 +46,6 @@ template < typename T > // A custom comparison type is needed struct object_id_compare - : std::binary_function { bool operator ()( object_id const &a, object_id const &b ) const; diff --git a/include/boost/utility/compare_pointees.hpp b/include/boost/utility/compare_pointees.hpp index 7e2515c..5ab21cd 100644 --- a/include/boost/utility/compare_pointees.hpp +++ b/include/boost/utility/compare_pointees.hpp @@ -33,8 +33,12 @@ bool equal_pointees ( OptionalPointee const& x, OptionalPointee const& y ) } template -struct equal_pointees_t : std::binary_function +struct equal_pointees_t { + typedef bool result_type; + typedef OptionalPointee first_argument_type; + typedef OptionalPointee second_argument_type; + bool operator() ( OptionalPointee const& x, OptionalPointee const& y ) const { return equal_pointees(x,y) ; } } ; @@ -56,8 +60,12 @@ bool less_pointees ( OptionalPointee const& x, OptionalPointee const& y ) } template -struct less_pointees_t : std::binary_function +struct less_pointees_t { + typedef bool result_type; + typedef OptionalPointee first_argument_type; + typedef OptionalPointee second_argument_type; + bool operator() ( OptionalPointee const& x, OptionalPointee const& y ) const { return less_pointees(x,y) ; } } ; From 0f1f793cafb8eca72a05ff842298d0161dc52b05 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sun, 6 Nov 2016 21:18:27 +0300 Subject: [PATCH 3/3] Removed std::binary_function from a comment. --- base_from_member_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_from_member_test.cpp b/base_from_member_test.cpp index 815cc31..538e807 100644 --- a/base_from_member_test.cpp +++ b/base_from_member_test.cpp @@ -18,7 +18,7 @@ #include // for boost::base_from_member -#include // for std::binary_function, std::less +#include // for std::less #include // for std::cout (std::ostream, std::endl indirectly) #include // for std::set #include // for std::type_info