From beffa27ce8038c8e6d30b90f95a9d55ff5068c08 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 6 Dec 2016 15:52:48 +0200 Subject: Work around bogus VC14u3 warning --- build2/variable | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build2/variable b/build2/variable index abff1d5..8fc1fb9 100644 --- a/build2/variable +++ b/build2/variable @@ -221,7 +221,7 @@ namespace build2 // Fast, unchecked cast of data_ to T. // template T& as () & {return reinterpret_cast (data_);} - template T&& as () && {return reinterpret_cast (data_);} + template T&& as () && {return move (as ());} template const T& as () const& { return reinterpret_cast (data_);} -- cgit v1.1