
17 Jan
2012
17 Jan
'12
3:45 p.m.
Allan Nielsen writes:
If I remove the copy constructor in Foo, it works as I expect, and if I do a "normal" initialization of AccSize::s it also works as I expect.
Is this a bug? If so, how can it be reproduced without mpl::foreach
The code works as expected (after removing the non-static member initializer) on gcc and this is the behaviour that is expected. To test without mpl::for_each just unroll the loop: AccSize < Foo > p; p(int()); p(int()); p(int());
Best regards Allan W. Nielsen
Cheers, Philipp Moeller