Commit 3b67620c authored by Davis King's avatar Davis King

Merge

parents 5bcfe4f6 f61432c6
......@@ -7,14 +7,9 @@
#ifndef DLIB_BOOST_NONCOPYABLE_HPP_INCLUDED
#define DLIB_BOOST_NONCOPYABLE_HPP_INCLUDED
#ifndef BOOST_NONCOPYABLE_HPP_INCLUDED
#define BOOST_NONCOPYABLE_HPP_INCLUDED
namespace boost
namespace dlib
{
namespace noncopyable_ // protection from unintended ADL
{
class noncopyable
{
/*!
......@@ -27,20 +22,10 @@ namespace boost
noncopyable() {}
~noncopyable() {}
private: // emphasize the following members are private
noncopyable( const noncopyable& );
const noncopyable& operator=( const noncopyable& );
};
}
typedef noncopyable_::noncopyable noncopyable;
noncopyable(const noncopyable&);
const noncopyable& operator=(const noncopyable&);
} // namespace boost
#endif // BOOST_NONCOPYABLE_HPP_INCLUDED
namespace dlib
{
using boost::noncopyable;
};
}
#endif // DLIB_BOOST_NONCOPYABLE_HPP_INCLUDED
......
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