Victor I get the following errors
------ Build started: Project: lab_test, Configuration: Debug Win32 ------
Compiling...
lab_test.cpp
c:\documents and settings\vgrigoryev\my documents\visual studio
2005\projects\lab_test\lab_test.cpp(51) : error C2988: unrecognizable
template declaration/definition
c:\documents and settings\vgrigoryev\my documents\visual studio
2005\projects\lab_test\lab_test.cpp(51) : error C2059: syntax error :
'<L_TEMPLATEDECL>'
c:\documents and settings\vgrigoryev\my documents\visual studio
2005\projects\lab_test\lab_test.cpp(48) : error C2143: syntax error :
missing ';' before '<'
c:\documents and settings\vgrigoryev\my documents\visual studio
2005\projects\lab_test\lab_test.cpp(48) : error C2433: 'Container' :
'inline' not permitted on data declarations
c:\documents and settings\vgrigoryev\my documents\visual studio
2005\projects\lab_test\lab_test.cpp(48) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\vgrigoryev\my documents\visual studio
2005\projects\lab_test\lab_test.cpp(48) : error C2988: unrecognizable
template declaration/definition
c:\documents and settings\vgrigoryev\my documents\visual studio
2005\projects\lab_test\lab_test.cpp(48) : error C2059: syntax error : '<'
c:\documents and settings\vgrigoryev\my documents\visual studio
2005\projects\lab_test\lab_test.cpp(48) : error C2039: 'size_type' : is not
a member of '`global namespace''
Build log was saved at "file://c:\Documents and Settings\vgrigoryev\My
Documents\Visual Studio 2005\Projects\lab_test\Debug\BuildLog.htm"
lab_test - 8 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Vladimir Grigoriev
Post by Vladimir GrigorievWhy is not compiled the following code in Visual C++ 2005 EE?
template <template <typename T, typename A> typename Container,
typename T, typename A>
inline typename Container<T, A>::size_type size( Container<T, A> &c )
{
return ( c.size() );
}
What does your question mean? Could you perhaps rephrase it? What do you
expect, and why? What do you get? Post *complete* code and the compiler
output and explain how it is different from what you expect.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask