Skip to content

Commit b01049d

Browse files
committed
DataConversion/SpaceTransform : Avoid std::unary_function
This was deprecated in C++11 and removed in C++17. It appears to remain available in practice in `libc++` and `libstdc++` but not MSVC.
1 parent f77b92d commit b01049d

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

include/IECore/DataConversion.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,12 @@
3838
#include "boost/static_assert.hpp"
3939
#include "boost/type_traits/integral_constant.hpp"
4040

41-
#include <functional>
42-
4341
namespace IECore
4442
{
4543

4644
/// Base class for data conversions
4745
template<typename F, typename T>
48-
struct DataConversion : public std::unary_function<F, T>
46+
struct DataConversion
4947
{
5048
typedef F FromType;
5149
typedef T ToType;

include/IECore/SpaceTransform.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,12 @@
3535
#ifndef IE_CORE_SPACETRANSFORM_H
3636
#define IE_CORE_SPACETRANSFORM_H
3737

38-
#include <functional>
39-
40-
4138
namespace IECore
4239
{
4340

4441
/// Base class for data conversions
4542
template<typename F, typename T>
46-
struct SpaceTransform : public std::unary_function<F, T>
43+
struct SpaceTransform
4744
{
4845
typedef F FromType;
4946
typedef T ToType;

0 commit comments

Comments
 (0)