Hello!

Could you please clarify whether or not g++ takes into an account
explicitly specified inline qualifier for the class member function
implemented in the class body?

I know that according to C++ standard such a function shall be
qualified as inline no matter whether "inline" qualifier specified or
not, but I still have doubts regarding gcc behavior on that (mostly
because I've seen vast amount of the production code written in this
manner).

I mean whether the code

class A
{
  inline void foo() { ... }
};

is absolutely equal to

class A
{
  void foo() { ... }
};

in *any* circumstances or not?

Thanks in advance.

-- 
Best regards,
    Alexander Shabanov

Reply via email to