VS2010 C++编译问题
template<bool val> class static_assert ;
template<> class static_assert<true> {};
好像就是上边2句的问题,请问这是什么错误啊
Error 1 error C2332: 'class' : missing tag name c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 89 1 pfc
Error 2 error C3306: 'pfc::<unnamed-tag>': unnamed class template is not allowed c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 89 1 pfc
Error 3 error C2143: syntax error : missing ';' before 'static_assert' c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 89 1 pfc
Error 4 error C2059: syntax error : ';' c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 89 1 pfc
Error 5 error C2332: 'class' : missing tag name c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 pfc
Error 6 error C2143: syntax error : missing ';' before 'static_assert' c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 pfc
Error 7 error C2913: explicit specialization; 'pfc::<unnamed-tag>' is not a specialization of a class template c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 pfc
Error 8 error C2059: syntax error : '<' c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 pfc
Error 9 error C2143: syntax error : missing ';' before '{' c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 pfc
Error 10 error C2447: '{' : missing function header (old-style formal list?) c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 pfc
Error 11 error C2332: 'class' : missing tag name c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 89 1 foobar2000_SDK
Error 12 error C3306: 'pfc::<unnamed-tag>': unnamed class template is not allowed c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 89 1 foobar2000_SDK
Error 13 error C2143: syntax error : missing ';' before 'static_assert' c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 89 1 foobar2000_SDK
Error 14 error C2059: syntax error : ';' c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 89 1 foobar2000_SDK
Error 15 error C2332: 'class' : missing tag name c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 foobar2000_SDK
Error 16 error C2143: syntax error : missing ';' before 'static_assert' c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 foobar2000_SDK
Error 17 error C2913: explicit specialization; 'pfc::<unnamed-tag>' is not a specialization of a class template c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 foobar2000_SDK
Error 18 error C2059: syntax error : '<' c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 foobar2000_SDK
Error 19 error C2143: syntax error : missing ';' before '{' c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 foobar2000_SDK
Error 20 error C2447: '{' : missing function header (old-style formal list?) c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 foobar2000_SDK
21 IntelliSense: expected either a definition or a tag name c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 19 pfc