'Inline out-of-class member function definition [duplicate]
struct S {
void foo();
};
inline void S::foo() {}
Can't figure out from the documentation if this function is considered inline or not. We use the inline
keyword but in the definition of a function previously declared as non-inline. What about the following case?
struct S {
inline void foo();
};
void S::foo() {}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|