Bastian, I don't think that the example in compileError.hxx is a good
code. But I think than the code is compilable.

I have two arguments.

The first: It is works with g++-4.4 :-)

The second:
When the member function fully defines in the class body it makes the
function inline.
Imagine that in main function is written:

mapOfStructure tmp;
structure my_structure;
tmp.SetMos( my_structure );

It's the same as:

mapOfStructure tmp;
structure my_structure;
tmp.m_mos = my_structure;

The second code is compilable, the first is not compilable.

On 04/25/2011 04:17 PM, Bastian Blank wrote:
> On Mon, Mar 21, 2011 at 05:33:38PM +0300, Fokin Evgeny wrote:
>> I make simple code for demonstration this compile error. Look attached
>> files.
> Can you please explain why this example is correct?

Reply via email to