mirror of
https://github.com/boostorg/utility.git
synced 2025-07-30 12:57:31 +02:00
ADL protection
[SVN r24564]
This commit is contained in:
@ -16,6 +16,8 @@ namespace boost {
|
||||
|
||||
// Contributed by Dave Abrahams
|
||||
|
||||
namespace noncopyable_ // protection from unintended ADL
|
||||
{
|
||||
class noncopyable
|
||||
{
|
||||
protected:
|
||||
@ -25,6 +27,9 @@ class noncopyable
|
||||
noncopyable( const noncopyable& );
|
||||
const noncopyable& operator=( const noncopyable& );
|
||||
};
|
||||
}
|
||||
|
||||
typedef noncopyable_::noncopyable noncopyable;
|
||||
|
||||
} // namespace boost
|
||||
|
||||
|
Reference in New Issue
Block a user