Mail Archives: djgpp/2000/04/09/17:44:37
Kalum Somaratna aka Grendel wrote:
>
> On Mon, 1 Jan 2001, leon wrote:
>
> Well the compiler knows where to get the inlined function from because the
> inlined function should be defined in a header file.
huh?!
so what about this then:
//the .h file
class Some
{
public:
Some();
~Some();
inline void Method();
};
//the .cpp file
Some::Some()
{
;
}
Some::~Some()
{
;
}
void Some::Method()
{
;
}
now if some class uses Some.h file - it will NOT contain the source code
definition of Method!
am i going wrong somewhere?
WIth best regards - Leon
- Raw text -