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