https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207253

--- Comment #23 from David Chisnall <thera...@freebsd.org> ---
I hadn't realised it had out-of-line definitions.  These also need prefixing
with ::.  The following works, and restricts the changes to the declaration of
the template:

#include <iostream>
using namespace std;
template<typename T>
struct array {
       array(T t);
};
using ::array;
template<typename T>
::array<T>::array(T t) {}

array<int> x(1);

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"

Reply via email to