DEK> Attached is a 6-line C++ test program (which does nothing more than DEK> instantiate templates) that compiles in g++-2, with
DEK> g++ -c test-template.cc DEK> but for which g++-3 yields the error messages: DEK> test-template.cc:4: non-template used as template DEK> test-template.cc:6: non-template used as template DEK> QUESTION: am I doing something wrong? As I understand you want to define specialization of template function? (I hope I chosed right English words). Specialization of template function is no longer template - it is function. So you should not use 'template' keyword. Just remove it. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | Ilya Martynov (http://martynov.org/) | | GnuPG 1024D/323BDEE6 D7F7 561E 4C1D 8A15 8E80 E4AE BE1A 53EB 323B DEE6 | | AGAVA Software Company (http://www.agava.com/) | -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-