Le 14/06/2016 20:55, Georg Baum a écrit :
Guillaume Munch wrote:
Le 14/06/2016 16:38, Jean-Marc Lasgouttes a écrit :
but of course RefChange<X>
proved more difficult. I tried to define it as a subclass of
unique_ptr<RevertibleRef<X>>, but then my C++11 default skills showed
their weakness.
What errors does it give with the attached?
Only errors about constructor inheritance.
With the attached patch in addition it compiles fine & passes all tests.
Thanks.
What error is it?
I
am not proposing to use the patch as-is, but it does not only make things
worse: It avoids to initialize members twice.
I should have done the obvious converse: initialize the short
constructor from the long constructor.
Georg
PS: If anyone running debian wants to test old compilers easily you can
simply install packages from older releases. For example, I used gcc-4.6,
g++-4.6 and corresponding dependencies from wheezy on a jessie system (the
packages do not interfere with the default compiler which is gcc 4.9). This
might work on ubuntu as well, but I did not try.
Good idea, this should work on Ubuntu.