inline keyword in class definition

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

inline keyword in class definition

Mateusz Loskot
Administrator
Hi,

What's the purpose of explicit use of inline specifier for
functions defined within class definitions?

AFAIU C++ Standard/7.1.2 extra inline keyword has no effect, because:

"3 A function defined within a class definition is an inline function."

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
--
Mateusz Loskot
http://mateusz.loskot.net
Loading...