1
0
forked from boostorg/core

Add comment describing noncopyable_::base_token

This commit is contained in:
Peter Dimov
2018-08-25 15:15:53 +03:00
parent f3782a946f
commit a05906fd44

View File

@ -23,6 +23,14 @@ namespace noncopyable_ // protection from unintended ADL
#ifndef BOOST_NONCOPYABLE_BASE_TOKEN_DEFINED
#define BOOST_NONCOPYABLE_BASE_TOKEN_DEFINED
// noncopyable derives from base_token to enable Type Traits to detect
// whether a type derives from noncopyable without needing the definition
// of noncopyable itself.
//
// The definition of base_token is macro-guarded so that Type Trais can
// define it locally without including this header, to avoid a dependency
// on Core.
struct base_token {};
#endif // #ifndef BOOST_NONCOPYABLE_BASE_TOKEN_DEFINED