C++ Logo

sg7

Advanced search

[SG7] members_of( namespace ).size() changes when a namespace grows ?

From: Cleiton Santoia <cleitonsantoia_at_[hidden]>
Date: Wed, 28 Oct 2020 17:36:20 -0300
Sorry I didn't follow last progress in Reflection.


Anybody knows if :

namespace X {
   void A() {}
}
static_assert ( members_of( reflexpr(X) ).size() == 1 );

namespace X {
     void B() {}
}
static_assert ( members_of( reflexpr(X) ).size() == 2 ); // <- size()
changes ?

does the second assert fails ?

Thanks

Received on 2020-10-28 15:36:32