From f0b64b62298f595be4f8eb34c4c8d62c10bc7170 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 18 Aug 2004 17:01:11 +0000 Subject: [PATCH] ADL protection [SVN r24564] --- include/boost/noncopyable.hpp | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/include/boost/noncopyable.hpp b/include/boost/noncopyable.hpp index ce05cfa..7770bdb 100644 --- a/include/boost/noncopyable.hpp +++ b/include/boost/noncopyable.hpp @@ -16,15 +16,20 @@ namespace boost { // Contributed by Dave Abrahams -class noncopyable +namespace noncopyable_ // protection from unintended ADL { - protected: - noncopyable() {} - ~noncopyable() {} - private: // emphasize the following members are private - noncopyable( const noncopyable& ); - const noncopyable& operator=( const noncopyable& ); -}; + class noncopyable + { + protected: + noncopyable() {} + ~noncopyable() {} + private: // emphasize the following members are private + noncopyable( const noncopyable& ); + const noncopyable& operator=( const noncopyable& ); + }; +} + +typedef noncopyable_::noncopyable noncopyable; } // namespace boost