X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/faef34664a1e4cd7eeaa085e8daaee83d0a85875..006a0303009d132faef2bdac7dd92b0212a09bd2:/data/lalr1-fusion.cc diff --git a/data/lalr1-fusion.cc b/data/lalr1-fusion.cc index bae0c49e..e3cafff8 100644 --- a/data/lalr1-fusion.cc +++ b/data/lalr1-fusion.cc @@ -186,14 +186,6 @@ dnl FIXME: This is wrong, we want computed header guards. return *new (buffer) T; } - /// Destroy the stored \a T. - template - inline void - destroy() - { - reinterpret_cast(buffer).~T(); - } - /// Accessor to a built \a T. template inline T& @@ -210,6 +202,14 @@ dnl FIXME: This is wrong, we want computed header guards. return reinterpret_cast(buffer); } + /// Destroy the stored \a T. + template + inline void + destroy() + { + as().~T(); + } + /// A buffer large enough to store any of the semantic values. char buffer[S]; };