23 Aug
2018
23 Aug
'18
4:23 p.m.
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.