2006-09-06 Thierry GERAUD <theo(a)tegucigalpa.lrde.epita.fr>
New macro to declare virtual types in abstract classes.
* stc/vtypes.hh (stc_virtual_typedef): New.
Index: stc/vtypes.hh
===================================================================
--- stc/vtypes.hh (revision 522)
+++ stc/vtypes.hh (working copy)
@@ -889,4 +889,11 @@
Namespace::type_of_<Category, FromType, \
Namespace::typedef_:: Typedef##_type >::ret
+/// Declare the vtype \a Typedef in an abstract class (see sample code
+/// for details). Warning: this macro assumes that the exact type
+/// parameter is named 'E'.
+#define stc_virtual_typedef(Typedef) \
+ typedef oln_type_of(E, Typedef) Typedef
+
+
#endif // ! STATIC_VTYPES_HH
Show replies by date