Function.h: remove deprecated unary_function and binary_function
these are deprecated in c++-17 and we do not use any functionality from them in any case
This commit is contained in:
parent
aa95ce1dd1
commit
53fc5be069
@ -17,7 +17,6 @@
|
||||
#include "matrixnd.h"
|
||||
#include "Tensor.h"
|
||||
#include "Vec3.h"
|
||||
#include <functional>
|
||||
#include <cstddef>
|
||||
|
||||
|
||||
@ -28,7 +27,7 @@ namespace utl
|
||||
*/
|
||||
|
||||
template<class Arg, class Result>
|
||||
class Function : public std::unary_function<const Arg&,Result>
|
||||
class Function
|
||||
{
|
||||
protected:
|
||||
//! \brief The constructor is protected to allow sub-class instances only.
|
||||
@ -62,7 +61,7 @@ namespace utl
|
||||
*/
|
||||
|
||||
template<class Arg, class Result>
|
||||
class Function2 : public std::binary_function<const Arg&,const Arg&,Result>
|
||||
class Function2
|
||||
{
|
||||
protected:
|
||||
//! \brief The constructor is protected to allow sub-class instances only.
|
||||
|
Loading…
Reference in New Issue
Block a user