|
From: | Thomas Maeder |
Subject: | Re: Template function calling a templated function in the templated class |
Date: | Mon, 09 Oct 2006 18:01:35 +0200 |
User-agent: | Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux) |
"Charles Karney" <address@hidden> writes: > class bar { > public: > template<class X> int barf(X x) { return x.foof0<double>(); } foof0 is a dependent name naming a member template; such names have to prefixed with the keyword template: template<class X> int barf(X x) { return x.template foof0<double>(); }
[Prev in Thread] | Current Thread | [Next in Thread] |