Subject: Re: [boost] [type_traits][core] modularisation and moving stuff about (again)
From: Peter Dimov (lists_at_[hidden])
Date: 2018-08-23 14:43:41


> 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.