From e88ec2fc6e97c74f582053e4074fece110e01935 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sun, 6 Nov 2016 21:07:08 +0300 Subject: [PATCH] Replaced std::binary_function with the corresponding typedefs. Improves compatibility with C++17. Also fixed an include for the standard streams. --- test/is_sorted_test.cpp | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/test/is_sorted_test.cpp b/test/is_sorted_test.cpp index b84c5a3..f88d91c 100644 --- a/test/is_sorted_test.cpp +++ b/test/is_sorted_test.cpp @@ -5,15 +5,17 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==============================================================================*/ -#include +#include #include #include #include #include template -struct tracking_less: std::binary_function { +struct tracking_less { typedef bool result_type; + typedef T first_argument_type; + typedef T second_argument_type; #if defined(__PATHSCALE__) tracking_less (void) { } @@ -27,8 +29,10 @@ struct tracking_less: std::binary_function { }; template -struct tracking_less_equal: std::binary_function { +struct tracking_less_equal { typedef bool result_type; + typedef T first_argument_type; + typedef T second_argument_type; #if defined(__PATHSCALE__) tracking_less_equal (void) { } @@ -42,8 +46,10 @@ struct tracking_less_equal: std::binary_function { }; template -struct tracking_greater: std::binary_function { +struct tracking_greater { typedef bool result_type; + typedef T first_argument_type; + typedef T second_argument_type; #if defined(__PATHSCALE__) tracking_greater (void) { } @@ -57,8 +63,10 @@ struct tracking_greater: std::binary_function { }; template -struct tracking_greater_equal: std::binary_function { +struct tracking_greater_equal { typedef bool result_type; + typedef T first_argument_type; + typedef T second_argument_type; #if defined(__PATHSCALE__) tracking_greater_equal (void) { } @@ -127,4 +135,3 @@ int main (void) { return report_errors(); } -