S
sunil
Hello,
Does member function inlining in C++ guarantee that multiple files
including a header (that includes implementation for function member
thats inlined) wont get multiply defined linker errors even if
compiler decides NOT to inline the function?
I experimented this in a sunOS machine forcing compiler not to inline
a function, and the scope of functions is LOCL (i.e. its not visible
to other modules) and so I dont get linktime errors . Does C++
standard define this as behavior?
Thanks
Does member function inlining in C++ guarantee that multiple files
including a header (that includes implementation for function member
thats inlined) wont get multiply defined linker errors even if
compiler decides NOT to inline the function?
I experimented this in a sunOS machine forcing compiler not to inline
a function, and the scope of functions is LOCL (i.e. its not visible
to other modules) and so I dont get linktime errors . Does C++
standard define this as behavior?
Thanks