This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc4, namespace and template specialization problem
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: tbp <tbptbp at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 04 Apr 2005 10:54:19 +0100
- Subject: Re: gcc4, namespace and template specialization problem
- Organization: Codesourcery LLC
- References: <4fc48eb105040402479c4dd5@mail.gmail.com>
tbp wrote:
Hello,
i'm a bit puzzled by the behaviour of gcc4 (old 4.0 & recent 4.1
snapshots) regarding how template specialization should be qualified
wrt namespace:
It has to be written this way:
namespace dummy {
template<> void dummy::foo::f<666>() {}
or
template<> void foo::f<666>() {}
}
correct.
Am i missing something obvious?
well, not 'obvious', but that is what [14.7.3]/2 says.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk