PK
Size: a a a
PK
A
PK
N
A
PK
RegistryDetails::one()
, но так низя тожеO
static constexpr auto one = [] () {return A{1};};
https://godbolt.org/z/wxDr9vN
N
static constexpr auto one = [] () {return A{1};};
https://godbolt.org/z/wxDr9vPK
static constexpr auto one = [] () {return A{1};};
https://godbolt.org/z/wxDr9vPK
struct Registry {:) уже ничего не хочу понимать, пойду дальше работать
static constexpr auto one = [] () {return 3;};
static constexpr auto m_one = std::pair<const char*, decltype(one())>{"one", one()};
};
int main() {
return Registry::m_one.second;
}
N
O
N