c++: privatize variant blind copies

* data/variant.hh (variant, operator=): Make private.
* data/c++.m4 (operator=): New, to avoid needing a definition of that operator
for each class member (such as a possible variant).
* data/glr.cc, data/lalr.cc: Add the necessary include for the abort.
This commit is contained in:
Theophile Ranquet
2013-01-11 11:41:07 +01:00
parent 39ad6cc6ac
commit 04816a6f32
4 changed files with 14 additions and 1 deletions

View File

@@ -203,7 +203,7 @@ m4_define([b4_variant_define],
}
/// Prohibit blind copies.
// private:
private:
self_type& operator=(const self_type&)
{
abort ();