Subject: Re: [boost] [contract] auto_..._error regression tests fail on C++1z
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2017-09-28 23:05:18
> Why... what changed in C++1z that makes the above compile? How can I
> prevent copying x outside its friend function f in C++1z?
C++ 17 guarantees copy elision in the strong sense.
Note it still can't be copied, but it can be initialised now. So disable
non-friend construction to fix.
-- ned Productions Limited Consulting http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/