Re: [c++0x] inconsistent behaviour with defaulted move constructor

2010-11-30 Thread Jonathan Wakely
On 30 November 2010 22:51, Roman Kononov wrote: > The two programs below differ by the location of =default applied to > the move constructor. In the first program, it is defaulted inside > the class during declaration. In the second program, it is defaulted > outside the class in the definition. >

[c++0x] inconsistent behaviour with defaulted move constructor

2010-11-30 Thread Roman Kononov
The two programs below differ by the location of =default applied to the move constructor. In the first program, it is defaulted inside the class during declaration. In the second program, it is defaulted outside the class in the definition. The first program does not compile. The second does comp