Boost logo

Boost :

Subject: Re: [boost] [type_traits][core] modularisation and moving stuff about (again)
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2018-08-23 16:23:51


On 08/23/18 17:43, Peter Dimov via Boost wrote:
>> Andrey Semashev wrote:
>>
>> > Does is_base_and_derived (non-intrinsic-based) work with private >
>> inheritance?
>>
>> Yes, it does.
>
> We'll have to do something like
>
> #ifndef BOOST_NONCOPYABLE_BASE_TOKEN_DEFINED
> #define BOOST_NONCOPYABLE_BASE_TOKEN_DEFINED
>
> namespace noncopyable_
> {
>    struct base_token {};
> }
>
> #endif
>
> then derive noncopyable from that and repeat the above definition where
> it's used in Type Traits.

Or maybe have it just in TypeTraits and use it in Core. It could be
named appropriately, e.g. noncopyable_base.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk