Replaced std::binary_function with the corresponding typedefs. Improves compatibility with C++17. Also fixed an include for the standard streams.

This commit is contained in:
Andrey Semashev
2016-11-06 21:07:08 +03:00
parent 94f1e6b0c6
commit e88ec2fc6e

View File

@ -5,15 +5,17 @@
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/
#include <ios>
#include <iostream>
#include <boost/config.hpp>
#include <boost/array.hpp>
#include <boost/detail/is_sorted.hpp>
#include <boost/detail/lightweight_test.hpp>
template<class T>
struct tracking_less: std::binary_function <T, T, bool> {
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 <T, T, bool> {
};
template<class T>
struct tracking_less_equal: std::binary_function <T, T, bool> {
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 <T, T, bool> {
};
template<class T>
struct tracking_greater: std::binary_function <T, T, bool> {
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 <T, T, bool> {
};
template<class T>
struct tracking_greater_equal: std::binary_function <T, T, bool> {
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();
}