mirror of https://github.com/davisking/dlib.git
Changed noncopyable.h to avoid a name clash with boost 1.56
This commit is contained in:
parent
1ff7cd1ad7
commit
f61432c626
|
@ -7,13 +7,8 @@
|
||||||
#ifndef DLIB_BOOST_NONCOPYABLE_HPP_INCLUDED
|
#ifndef DLIB_BOOST_NONCOPYABLE_HPP_INCLUDED
|
||||||
#define 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
|
class noncopyable
|
||||||
{
|
{
|
||||||
|
@ -29,19 +24,9 @@ namespace boost
|
||||||
private: // emphasize the following members are private
|
private: // emphasize the following members are private
|
||||||
noncopyable(const noncopyable&);
|
noncopyable(const noncopyable&);
|
||||||
const noncopyable& operator=(const noncopyable&);
|
const noncopyable& operator=(const noncopyable&);
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef noncopyable_::noncopyable noncopyable;
|
|
||||||
|
|
||||||
} // namespace boost
|
|
||||||
|
|
||||||
#endif // BOOST_NONCOPYABLE_HPP_INCLUDED
|
|
||||||
|
|
||||||
namespace dlib
|
|
||||||
{
|
|
||||||
using boost::noncopyable;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // DLIB_BOOST_NONCOPYABLE_HPP_INCLUDED
|
#endif // DLIB_BOOST_NONCOPYABLE_HPP_INCLUDED
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue