Fix build on old GCC.
[libdcp.git] / src / transfer_function.h
index 52624c6689b7c82c9b339deef4c94c57d2650d68..a52011ec003c844db49d1f74b466d3f2a417cdb5 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of libdcp.
 
     files in the program, then also delete it here.
 */
 
+
 /** @file  src/transfer_function.h
- *  @brief TransferFunction class.
+ *  @brief TransferFunction class
  */
 
+
 #ifndef LIBDCP_TRANSFER_FUNCTION_H
 #define LIBDCP_TRANSFER_FUNCTION_H
 
-#include <boost/noncopyable.hpp>
-#include <memory>
+
 #include <boost/thread/mutex.hpp>
 #include <map>
+#include <memory>
+
 
 namespace dcp {
 
+
 /** @class TransferFunction
  *  @brief A transfer function represented by a lookup table.
  */
-class TransferFunction : public boost::noncopyable
+class TransferFunction
 {
 public:
+       TransferFunction () {}
+
+       TransferFunction (TransferFunction const&) = delete;
+       TransferFunction& operator= (TransferFunction const&) = delete;
+
        virtual ~TransferFunction ();
 
        /** @return A look-up table (of size 2^bit_depth) whose values range from 0 to 1 */
@@ -68,6 +77,8 @@ private:
        mutable boost::mutex _mutex;
 };
 
+
 }
 
+
 #endif