This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
"massive" inline
- From: Alexander Shabanov <avshabanov at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 30 Sep 2009 23:39:07 +0400
- Subject: "massive" inline
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