[devel] parse error in template argument list

Slava Dubrovskiy dubrsl на altlinux.ru
Пт Дек 8 17:38:54 MSK 2006


п≈п╢я─п╟п╡я│я┌п╡я┐п╧я┌п╣.

п²п╟я┌п╨п╫я┐п╩я│я▐ п╫п╟ я┌п╟п╨я┐я▌ я│п╦я┌я┐п╟я├п╦я▌ п©я─п╦ я│п╠п╬я─п╨п╣ firebird. п▓п╬я┌ п©я─п╦п╪п╣я─:

$cat test.cpp

#include <sys/types.h>

template <typename Object, size_t Capacity = 16>
class Stack
{
    private:
        void* stk;
        void* stk_cache;

    public:
        explicit Stack<Object, Capacity>()
            : stk(0), stk_cache(0) { }

        Stack<Object, Capacity>()
            : stk(0), stk_cache(0) { }

        ~Stack<Object, Capacity>()
        {
            delete stk;
            delete stk_cache;
        }
}; // class Stack

int main(int argc, char* argv)
{
    return(0);
}

$ g++-3.4 -o test test.cpp
$ g++-4.1 -o test test.cpp
test.cpp:17: error: parse error in template argument list

$ rpm -qa | grep gcc
gccmakedep-1.0.1-alt1
gcc4.1-doc-4.1.1-alt10
gcc-c++-common-1.4.10-alt1
gcc3.4-3.4.5-alt6
gcc-common-1.4.10-alt1
gcc3.4-c++-3.4.5-alt6
libgcc4.1-4.1.1-alt10
gcc4.1-c++-4.1.1-alt10
gcc4.1-4.1.1-alt10

п▓п╬п©я─п╬я│: п╨п╟п╨ я│ я█я┌п╦п╪ п╠п╬я─п╬я┌я▄я│я▐? п≤я│п©п╬п╩я▄п╥п╬п╡п╟я┌я▄ п╢п╩я▐ я│п╠п╬я─п╨п╦ 3.4?

-- 
WBR,
Dubrovskiy Vyacheslav

----------- следущая часть -----------
п▒я▀п╩п╬ я┐п╢п╟п╩п╣п╫п╬ п╡п╩п╬п╤п╣п╫п╦п╣ п╫п╣ п╡ я┌п╣п╨я│я┌п╬п╡п╬п╪ я└п╬я─п╪п╟я┌п╣...
п≤п╪я▐     : signature.asc
п╒п╦п©     : application/pgp-signature
п═п╟п╥п╪п╣я─  : 252 п╠п╟п╧я┌п╬п╡
п·п©п╦я│п╟п╫п╦п╣: OpenPGP digital signature
Url     : http://lists.altlinux.org/pipermail/devel/attachments/20061208/1a676327/attachment.bin 


Подробная информация о списке рассылки Devel