[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to separate the implementation of inline functions?
From: |
Guy Harrison |
Subject: |
Re: how to separate the implementation of inline functions? |
Date: |
Sat, 18 Sep 2004 02:00:04 GMT |
User-agent: |
KNode/0.7.7 |
Sean McManus wrote:
> g++ won't let me separate the implementation of inline fuctions (i.e. not
> in the class declaration) -- it says the inlined function is not defined.
> What's up?
Not sure what you mean, please clarify with code (I'm gonna be away for for
few days).
As you'll be aware from C (and "register") "inline" is merely a hint that
compiler ought to do "stuff". GCC is better at this than most - a good
example of "inline failures" is borland (stonkingly fast compiler but pays
for it in this respect). Same applies for C++ I'm afraid - "inline" is
today's "register". Aka - the fact "inline" is in the C++ vocabulary means
absolutely nothing - compiler is at liberty to do as it will.