mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
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:
@@ -203,7 +203,7 @@ m4_define([b4_variant_define],
|
||||
}
|
||||
|
||||
/// Prohibit blind copies.
|
||||
// private:
|
||||
private:
|
||||
self_type& operator=(const self_type&)
|
||||
{
|
||||
abort ();
|
||||
|
||||
Reference in New Issue
Block a user