Date: Fri, 26 Feb 2016 10:55:49 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 207253] cad/openvsp: Fix in 11-CURRENT Message-ID: <bug-207253-29464-5dvNCNCIJN@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-207253-29464@https.bugs.freebsd.org/bugzilla/> References: <bug-207253-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207253 --- Comment #22 from Raphael Kubo da Costa <rakuco@FreeBSD.org> --- (In reply to David Chisnall from comment #21) > This patch looks more complicated than it needs to be. Wouldn't insertin= g: >=20 > using ::array; >=20 > Immediately after the definition of array work? It doesn't seem to work: % cat foo.cc #include <iostream> using namespace std; // Not doing that here doesn't help, as it can be done indirectly from another file included before this one. template<typename T> struct array { array(T t); }; using ::array; template<typename T> array<T>::array(T t) {} % clang++ -c foo.cc foo.cc:9:1: error: unknown type name 'array' array<T>::array(T t) {} ^ foo.cc:9:6: error: expected unqualified-id array<T>::array(T t) {} ^ 2 errors generated. > Alternatively, changing the > uses of array to ::array would also work without sticking array in a > namespace. That solves the issue for users of the array class, but not for array.h its= elf (plus the same amount of lines would need to be changed be it to "::array" = or "openvsp_array". --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207253-29464-5dvNCNCIJN>