mirror of
https://github.com/boostorg/core.git
synced 2025-07-31 21:34:42 +02:00
Add comment describing noncopyable_::base_token
This commit is contained in:
@@ -23,6 +23,14 @@ namespace noncopyable_ // protection from unintended ADL
|
|||||||
#ifndef BOOST_NONCOPYABLE_BASE_TOKEN_DEFINED
|
#ifndef BOOST_NONCOPYABLE_BASE_TOKEN_DEFINED
|
||||||
#define 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 {};
|
struct base_token {};
|
||||||
|
|
||||||
#endif // #ifndef BOOST_NONCOPYABLE_BASE_TOKEN_DEFINED
|
#endif // #ifndef BOOST_NONCOPYABLE_BASE_TOKEN_DEFINED
|
||||||
|
Reference in New Issue
Block a user