mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-13 06:13:02 +00:00
Let yy::variant::build return an lvalue.
* data/lalr1-fusion.cc (variant::build): Return a reference to the object.
This commit is contained in:
@@ -167,10 +167,10 @@ dnl FIXME: This is wrong, we want computed header guards.
|
||||
{
|
||||
/// Instantiate a \a T in here.
|
||||
template <typename T>
|
||||
inline void
|
||||
inline T&
|
||||
build()
|
||||
{
|
||||
new (buffer) T;
|
||||
return *new (buffer) T;
|
||||
}
|
||||
|
||||
/// Destroy the stored \a T.
|
||||
|
||||
Reference in New Issue
Block a user