1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
export module foo; export { template <typename> struct foo { constexpr const char* hello(void) const { return "hello typename!"; } }; // template <> // struct foo<int> { // constexpr const char* hello(void) const { // return "hello typename int!"; // } // }; }