Re: What is the problem with this use of templates?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Javier,

According to http://www.comeaucomputing.com/tryitout/

Comeau C/C++ 4.3.3 (Aug  6 2003 15:13:37) for ONLINE_EVALUATION_BETA1
Copyright 1988-2003 Comeau Computing.  All rights reserved.
MODE:strict errors C++

"ComeauTest.c", line 25: error: expected an expression
    hello->doSomething<goDown>();
                               ^

1 error detected in the compilation of "ComeauTest.c".

If I change the problem line to be C++ compliant:
    hello->template doSomething<goDown>();

Everything compiles.

HTH,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux