Commit 1ecb0c81 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

WRG: use delete on copy constructor instead of deriving from boost noncopyable

parent 0c6aafdc
...@@ -21,8 +21,6 @@ ...@@ -21,8 +21,6 @@
#ifndef otbOGRDriversInit_h #ifndef otbOGRDriversInit_h
#define otbOGRDriversInit_h #define otbOGRDriversInit_h
#include <boost/noncopyable.hpp>
#include "OTBGdalAdaptersExport.h" #include "OTBGdalAdaptersExport.h"
namespace otb namespace otb
...@@ -45,7 +43,7 @@ namespace ogr ...@@ -45,7 +43,7 @@ namespace ogr
* VC++) * VC++)
* - Non-copyable * - Non-copyable
*/ */
class OTBGdalAdapters_EXPORT Drivers : private boost::noncopyable class OTBGdalAdapters_EXPORT Drivers
{ {
/** \name Singleton related functions */ /** \name Singleton related functions */
//@{ //@{
...@@ -59,6 +57,11 @@ private: ...@@ -59,6 +57,11 @@ private:
Drivers(); Drivers();
/** Destructor. */ /** Destructor. */
~Drivers() = default; ~Drivers() = default;
/** Non copyable class */
Drivers(const Drivers&) = delete;
Drivers& operator=(const Drivers&) = delete;
//@} //@}
}; };
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment