discrim-union.cpp | 110 struct non_triv { struct 111 constexpr non_triv() : n(5) {} function in struct:non_triv 114 constexpr either<const icd*, non_triv> icd4 = a<const icd*>(&icd2); 115 constexpr either<const icd*, non_triv> icd5 = a<non_triv>(); 118 static_assert(icd5.get<non_triv>().n == 5, "");
|