explicit-instantiation.cpp | 25 constexpr int constexpr_function() { return 0; } function in struct:EarlyInstantiation::S 30 constexpr int a = S<char>().constexpr_function(); 35 constexpr int c = S<int>().constexpr_function(); 45 template<typename T> constexpr int constexpr_function() { return 0; } function in namespace:EarlyInstantiation 49 constexpr int e = constexpr_function<char>(); 53 extern template int constexpr_function<int>(); 55 constexpr int g = constexpr_function<int>(); 63 template int constexpr_function<char>(); 65 template int constexpr_function<int>();
|