Update of /cvsroot/mockpp/mockpp/mockpp/constraint
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19644/mockpp/constraint
Modified Files:
IsInstanceOf.h
Log Message:
optionally disable runtime type information (rtti)
Index: IsInstanceOf.h
===================================================================
RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/IsInstanceOf.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- IsInstanceOf.h 13 Mar 2005 19:13:25 -0000 1.17
+++ IsInstanceOf.h 27 Nov 2005 15:34:36 -0000 1.18
@@ -42,6 +42,8 @@
namespace mockpp {
+#ifndef MOCKPP_NO_RTTI
+
/** Tests whether the value is derived from the given class.
* A base class is needed since dynamic_cast checks for an existing traversal
* from \c derived to \c base.
@@ -78,6 +80,7 @@
}
};
+#endif // MOCKPP_NO_RTTI
} // namespace mockpp
|