aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-12-06 15:52:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-12-06 15:52:48 +0200
commitbeffa27ce8038c8e6d30b90f95a9d55ff5068c08 (patch)
treee0f21f1d95c518c1aef9425a85f0979e0a232b5f
parente26080c24e6b356a33c4a2a75e800b85e27d536b (diff)
Work around bogus VC14u3 warning
-rw-r--r--build2/variable2
1 files changed, 1 insertions, 1 deletions
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<typename T> T& as () & {return reinterpret_cast<T&> (data_);}
- template<typename T> T&& as () && {return reinterpret_cast<T&&> (data_);}
+ template<typename T> T&& as () && {return move (as<T> ());}
template<typename T> const T& as () const& {
return reinterpret_cast<const T&> (data_);}