Conditionally replace deprecated/removed C++98 function adapters and std::random_shuffle by equivalents.

Signed-off-by: Daniela Engert <dani@ngrt.de>
This commit is contained in:
Daniela Engert
2017-05-05 14:15:11 +02:00
parent 452b1bb7e7
commit 23e5801e2a
2 changed files with 81 additions and 6 deletions
+4 -2
View File
@@ -14,7 +14,6 @@
#include <boost/test/test_tools.hpp>
#include <boost/test/unit_test.hpp>
#include <functional>
#include <vector>
namespace boost
@@ -22,9 +21,12 @@ namespace boost
namespace
{
class TestTicket5486Pred
: public std::binary_function<int,int,bool>
{
public:
typedef int first_argument_type;
typedef int second_argument_type;
typedef bool result_type;
explicit TestTicket5486Pred(int x) {}
bool operator()(int,int) const { return true; }
private: