11 Ocak 2021 Pazartesi

std::is_pointer_interconvertible_with_class

Örnek
Şöyle yaparız
struct A { int a; };
struct B { int b; };
struct C: public A, public B { };

// The following will succeed because, despite its appearance,
// &C::b has type "pointer to member of B of type int"
static_assert(is_pointer_interconvertible_with_class( &C::b ));

Hiç yorum yok:

Yorum Gönder