From b4b39510fc02cdf10cdc585de4dfc0bf99512271 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Thu, 19 Aug 2004 13:12:35 +0000 Subject: [PATCH] ADL protection [SVN r24595] --- include/boost/noncopyable.hpp | 2 -- include/boost/utility_fwd.hpp | 11 +++++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/include/boost/noncopyable.hpp b/include/boost/noncopyable.hpp index 7770bdb..019413e 100644 --- a/include/boost/noncopyable.hpp +++ b/include/boost/noncopyable.hpp @@ -29,8 +29,6 @@ namespace noncopyable_ // protection from unintended ADL }; } -typedef noncopyable_::noncopyable noncopyable; - } // namespace boost #endif // BOOST_NONCOPYABLE_HPP_INCLUDED diff --git a/include/boost/utility_fwd.hpp b/include/boost/utility_fwd.hpp index ff301d4..466eeaa 100644 --- a/include/boost/utility_fwd.hpp +++ b/include/boost/utility_fwd.hpp @@ -18,6 +18,17 @@ namespace boost template < typename MemberType, int UniqueID = 0 > class base_from_member; +// From --------------------------------------------// + + namespace noncopyable_ + { + class noncopyable; + } + + typedef noncopyable_::noncopyable noncopyable; + +// Also has a few function templates + } // namespace boost