summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
faef346)
* data/lalr1-fusion.cc (destroy): Use as() in its definition.
Define it after as().
+2008-11-04 Akim Demaille <demaille@gostai.com>
+
+ Sort methods.
+ * data/lalr1-fusion.cc (destroy): Use as() in its definition.
+ Define it after as().
+
2008-11-04 Akim Demaille <demaille@gostai.com>
Useless parens.
2008-11-04 Akim Demaille <demaille@gostai.com>
Useless parens.
return *new (buffer) T;
}
return *new (buffer) T;
}
- /// Destroy the stored \a T.
- template <typename T>
- inline void
- destroy()
- {
- reinterpret_cast<T&>(buffer).~T();
- }
-
/// Accessor to a built \a T.
template <typename T>
inline T&
/// Accessor to a built \a T.
template <typename T>
inline T&
return reinterpret_cast<const T&>(buffer);
}
return reinterpret_cast<const T&>(buffer);
}
+ /// Destroy the stored \a T.
+ template <typename T>
+ inline void
+ destroy()
+ {
+ as<T>().~T();
+ }
+
/// A buffer large enough to store any of the semantic values.
char buffer[S];
};
/// A buffer large enough to store any of the semantic values.
char buffer[S];
};