Hi!
Cheers for the answers!
I don't want to make a function inline. I want to prevent it from being inline.
My problem is related to the fact that you have to declare template functions of template classes in the class declaration - you cannot delcare them outside the class declaration. VC++ 6 won't copile such code.
Check it out:
//INFO: C++ Standard Noncompliance Issues with Visual C++ .Net
//http://support.microsoft.com/kb/241949/EN-US/
//check also:
http://inspira.by.ru/ironwork/msvcpp...n_Out-Of-Class
Code:
template<class T> class A
{
template<class U> void f( U& u ) {};
}
//OK
template<class T> class B
{
template<class U> void g( U& u );
}
template<class T> template<class U> void g( U& u ) {}
//this won't compile with VC++ 6
This is why i wandered if there's a way to make a function defined in the class definition NOT an inline function.
You're right, I should have put a more detailed description of the problem, but:
>Besides, it is a bit confusing that you used 'definition' to refer to a piece of code which is actually a 'declaration' of a class...
1. I was talking about FUNCTION definition.
2. Exapmle I gave was a definition of a class (which by the way in this case is its declaration as well).
Cheers!