On 1/14/2011 12:10 PM, Achilleas Margaritis wrote:
There is a solution to that: the compiler, knowing that foo::bar is
not an inline function, it does not inline the function but it
automatically compiles the relevant symbol in the foo.o object file.
Which is a change to the language semantics!
The compiler can inline the trivial member functions and leave the
rest as is. Although technically it is a change in language semantics,
it's a very minor change, that I doubt will have anyone worried.
Has me worried, changing language semantics for this and thus making
the compiler non-conforming makes it a non-starter. This would have to
be done under some switch. For me this kills the idea, we will see
what others think.