C++ Logo

sg7

Advanced search

[SG7] Reflecting namespaces twice changes 'get_size' ?

From: Cleiton Santoia <cleitonsantoia_at_[hidden]>
Date: Thu, 4 Jun 2020 17:21:09 -0300
In current Reflection TS,

namespace X {
   struct A {};
}
static_assert ( reflexpr(X)::get_size_v == 1 );

namespace X {
   struct B {};
}
static_assert ( reflexpr(X)::get_size_v == 2 );

does second assert fails ?

Thanks

Received on 2020-06-04 15:24:26