From: <mk...@us...> - 2003-07-24 20:24:51
|
Update of /cvsroot/csp/APPLICATIONS/SimData/Include/SimData In directory sc8-pr-cvs1:/tmp/cvs-serv22976/Include/SimData Modified Files: TypeAdapter.h Log Message: Index: TypeAdapter.h =================================================================== RCS file: /cvsroot/csp/APPLICATIONS/SimData/Include/SimData/TypeAdapter.h,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** TypeAdapter.h 18 Jul 2003 19:47:17 -0000 1.16 --- TypeAdapter.h 24 Jul 2003 20:24:49 -0000 1.17 *************** *** 121,124 **** --- 121,131 ---- // objects + /* + * XXX + * These implicit casts are not currently used. The templated + * versions, in particular, are rather dangerous (and break under + * GCC-3.3). After a short testing period this cast code can be + * be completely removed. --MR 7/03 + template <typename T> operator T const &() const { *************** *** 139,143 **** // basic types - operator int const() const { IntCheck(); return var.i; } --- 146,149 ---- *************** *** 153,156 **** --- 159,163 ---- operator std::string const() const { StringCheck(); return s; } + */ int getInteger() const { IntCheck(); return var.i; } |