diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2018-10-20 09:09:45 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2018-10-20 09:18:40 +0200 |
commit | ace93397c13910b5c25a72832efaadbdb0c428ff (patch) | |
tree | a71bd784bfec96c3390a2208420b2fe1db24a140 /data/variant.hh | |
parent | d2192653dbf555337464846e0132c547bf3a503a (diff) | |
download | bison-ace93397c13910b5c25a72832efaadbdb0c428ff.tar.gz |
c++: don't obfuscate std::move when not needed
* data/lalr1.cc, data/variant.hh: Avoid macros that depend on the
version of C++ when not needed.
Diffstat (limited to 'data/variant.hh')
-rw-r--r-- | data/variant.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/variant.hh b/data/variant.hh index 66848fd2..f76d5d7f 100644 --- a/data/variant.hh +++ b/data/variant.hh @@ -184,7 +184,7 @@ m4_define([b4_variant_define], { build<T> (); # if defined __cplusplus && 201103L <= __cplusplus - as<T> () = YY_MOVE (other.as<T> ()); + as<T> () = std::move (other.as<T> ()); # else swap<T> (other); # endif @@ -198,7 +198,7 @@ m4_define([b4_variant_define], move (self_type&& other) { build<T> (); - as<T> () = YY_MOVE (other.as<T> ()); + as<T> () = std::move (other.as<T> ()); other.destroy<T> (); } #endif |