C++ Logo

SG7

Advanced search

Subject: members_of( namespace ).size() changes when a namespace grows ?
From: Cleiton Santoia (cleitonsantoia_at_[hidden])
Date: 2020-10-28 15:36:20


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



SG7 list run by sg7-owner@lists.isocpp.org

Older Archives on Google Groups