Re: GCC 3.3 template compile error?
Re: GCC 3.3 template compile error?
- Subject: Re: GCC 3.3 template compile error?
- From: "Tim Conkling" <email@hidden>
- Date: Sat, 13 Oct 2007 16:56:27 -0700
class LibXmlReader
{
public:
template <class T> T getAttribute(const xmlpp::Node* node, const std::string& attrName) const;
...
};
Also, this code compiles fine with GCC 4 on my Mac, and with VC++
7.1 on my Windows PC. It causes GCC 3.3, compiling for PPC, to complain.
Thanks,
Tim
On 10/13/07, Clark Cox <
email@hidden> wrote:
On 10/12/07, Tim Conkling <email@hidden> wrote:
> I'm compiling a Universal Binary. GCC 4 has no complaints (and neither does
> Visual C++), but GCC 3.3
chokes on the following code with the
> disappointingly non-descriptive message, "error: parse error before `;'
> token".
>
> (The getAttribute() function in the offending line is a templated member
> function of the LibXmlReader class. It's called from lots of non-template
> functions with no problems.)
What does the declaration of getAttribute() look like?
--
Clark S. Cox III
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden