Posted By: Rat (prilis mnoho her) on 'CZprogram'
Title: gcc
Date: Tue Aug 2 17:02:52 2005
i Zdar,
narazil jsem na problem, zjednodusene:
template <typename T>
class C
{
T a;
static C x;
};
C<int> C<int>::x = { 0 };
Kompilace:
g++ -c a.cxx
a.cxx:8: error: too few template-parameter-lists
a.cxx:8: error: expected `,' or `;' before '=' token
Verze:
g++ -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.3 20050227 (Red Hat 3.4.3-22.1)
V 3.3* to fungovalo bez problemu.
Krysa
rat@atrey.karlin.mff.cuni.cz Jsem Krysa
http://atrey.karlin.mff.cuni.cz/~rat/