Hi,
The above compiles just fine for me. Are you using current mainline or by chance an old snapshot?=== THIS CODE FAILS TO COMPILE === template <typename T> class foo { public: foo() =default; // <<--- this works fine. ~foo(); };template <typename T> foo<T>::~foo() =default; <<--- ERROR: This doesn't get built by the compiler. // foo<T>::~foo() {}; <<-- replacing with this line fixes the error. int main() { foo<int> fi; return 0; } ===================
Paolo.