inline keyword in class definition

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

inline keyword in class definition

Mateusz Loskot

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,
Charter Member of OSGeo,
Mateusz Loskot