[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Symbols and C++ inline constructor



* Roger Leigh <rleigh@codelibre.net>, 2012-01-08, 11:38:
I'm most surprised about the functions only being compiled on use even without the inline. Maybe I need to take them out of the class definition and inline the separate functions.

Yes, all member functions that are defined within the class body are considered inline, regardless of the "inline" keyword:
http://www.parashift.com/c++-faq-lite/inline-functions.html#faq-9.8

--
Jakub Wilk


Reply to: