diff options
author | Akim Demaille <akim@lrde.epita.fr> | 2013-01-28 14:56:16 +0100 |
---|---|---|
committer | Akim Demaille <akim@lrde.epita.fr> | 2013-01-28 15:00:23 +0100 |
commit | 7d1aa2d6365c103a4ae5e4c336b7c8bc3234df4f (patch) | |
tree | 554bc2a80b131bc0ec91cbc4e7f15be555ebef34 /data/variant.hh | |
parent | 26a4d3c8956b60735ba36744ef6047429e429fe3 (diff) | |
download | bison-7d1aa2d6365c103a4ae5e4c336b7c8bc3234df4f.tar.gz |
c++: remove now-useless operators
Now that symbols behaves properly, we can eliminate special routines
that are no longer needed.
* data/c++.m4, data/glr.cc, data/lalr1.cc, data/variant.hh:
Remove useless assignment operators and copy constructors.
As a consequence, remove useless includes for "abort".
Diffstat (limited to 'data/variant.hh')
-rw-r--r-- | data/variant.hh | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/data/variant.hh b/data/variant.hh index bbae8cb9..da0d2a39 100644 --- a/data/variant.hh +++ b/data/variant.hh @@ -72,7 +72,6 @@ m4_map([ b4_symbol_tag_comment], [$@])dnl # The needed includes for variants support. m4_define([b4_variant_includes], [b4_parse_assert_if([[#include <typeinfo>]])[ -#include <cstdlib> // abort #ifndef YYASSERT # include <cassert> # define YYASSERT assert @@ -213,19 +212,11 @@ m4_define([b4_variant_define], tname = YY_NULL;])[ } + private: /// Prohibit blind copies. - private: - self_type& operator=(const self_type&) - { - abort (); - } + self_type& operator=(const self_type&); + variant (const self_type&); - variant (const self_type&) - { - abort (); - } - - private: /// A buffer large enough to store any of the semantic values. /// Long double is chosen as it has the strongest alignment /// constraints. |