Re: online compiler
От: VoidEx  
Дата: 04.04.06 22:58
Оценка:


#include <iostream>
template <unsigned int I>
class X
{
public:
 static unsigned int const res = X<I + 1>::res + 1;
};

template <>
class X<15>
{
public:
 static unsigned int const res = X<0>::res + 1;
};

int main()
{
 std::cout << X<0>::res;
}

ANSI C++ Front-end Compiler & Virtual Machine, Version 3.0.
Copyright (c) 1998-2003, Interstron, Ltd.

*** C++ FrontEnd
D:\soft\compiler\tmp\test.cpp.4 (1, 1): error 0332: Internal program error
Excption:Unknown
unknown exception!
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.