This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On Tue, 2005-10-25 at 16:21 -0500, Javier Mena wrote:
> class MyClass {
> public:
> template <DIREC dir>
> void
> doSomething() {
> std::cout << "i'm doing something\n";
> }
> };
>
> [...]
>
> template<class T>
> void MyVector<T>::execute() {
> T* hello = new T();
> hello->doSomething<goDown>();
> delete hello;
> }
You need to replace the line "hello->doSomething<goDown>();" with
"hello->template doSomething<goDown>();".
--
Lars Luthman
PGP key: http://www.d.kth.se/~d00-llu/pgp_key.php
Fingerprint: FCA7 C790 19B9 322D EB7A E1B3 4371 4650 04C7 7E2E
Attachment:
signature.asc
Description: This is a digitally signed message part
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |