This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: semantics of attribute const on constructors
On 25 February 2011 17:05, Matthias Kretz wrote:
>
> I'm saying that the way I thought about const + ctor seems logical (if you are
> not a compiler developer at least :-) ). Regardless of how well defined
> "return value" is in the standards, to me as C++ developer the ctor acts as a
> function that takes some input and leaves as output a constructed object.
But it definitely doesn't *return* that object, any more than the
destructor does.