Constexpr class: Inheritance?
问题 First of all, I'm working with Clang 3.4.1 I'm writting a global variable which has to serve as a placeholder on compile-time contexts (Primarily as value template parameter). For that purpose, I have written a constexpr class named chameleon (It mimics the behaviour of any runtime value): struct chameleon { template<typename T> constexpr operator T() const { return T{}; } constexpr chameleon() = default; }; Since both the conversion operator and the constructor are specified as constexpr , I