explicit-instantiation.cpp | 24 constexpr int constexpr_function() { return 0; } function in struct:EarlyInstantiation::S 29 constexpr int a = S<char>().constexpr_function(); 34 constexpr int c = S<int>().constexpr_function(); 44 template<typename T> constexpr int constexpr_function() { return 0; } function in namespace:EarlyInstantiation 48 constexpr int e = constexpr_function<char>(); 52 extern template int constexpr_function<int>(); 54 constexpr int g = constexpr_function<int>(); 62 template int constexpr_function<char>(); 64 template int constexpr_function<int>();
|