1
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() {} 
daylydoze
  • 11
  • 2

0 Answers0