This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On 3 November 2011 16:17, Jonathan Wakely wrote:
>
> Something like ...
>
> template<typename Moveable>
> struct PretendToBeCopyable
> {
> ?explicit PretendToBeCopyable(Moveable&& m) : m(m) {}
Oops, that mem-initializer would need to be m(std::move(m))
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |