Merge pull request #5 from Lastique/patch-1

Fix compilation with gcc 4.5 in C++11 mode
This commit is contained in:
Andrey Semashev
2014-05-10 08:59:10 +04:00

View File

@ -23,14 +23,14 @@ namespace noncopyable_ // protection from unintended ADL
class noncopyable
{
protected:
#ifndef BOOST_NO_DEFAULTED_FUNCTIONS
#if !defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS) && !defined(BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS)
BOOST_CONSTEXPR noncopyable() = default;
~noncopyable() = default;
#else
noncopyable() {}
~noncopyable() {}
#endif
#ifndef BOOST_NO_DELETED_FUNCTIONS
#if !defined(BOOST_NO_CXX11_DELETED_FUNCTIONS)
noncopyable( const noncopyable& ) = delete;
noncopyable& operator=( const noncopyable& ) = delete;
#else