From: Braden M. <br...@us...> - 2005-11-11 22:21:18
|
Update of /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28861/src/libopenvrml/openvrml Modified Files: field_value.h Log Message: Quell warnings from the Microsoft compiler. Index: field_value.h =================================================================== RCS file: /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml/field_value.h,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** field_value.h 5 Nov 2005 04:54:33 -0000 1.16 --- field_value.h 11 Nov 2005 22:21:10 -0000 1.17 *************** *** 262,265 **** --- 262,269 ---- template <typename T> struct FieldValueConcept { + field_value * base_ptr; + T * fv; + field_value::type_id id; + void constraints() { *************** *** 284,296 **** // Make sure T inherits field_value (not virtually). // ! field_value * base_ptr; ! T * fv = static_cast<T *>(base_ptr); ! ignore_unused_variable_warning(fv); // // Make sure T::field_value_type_id exists. // ! field_value::type_id id = T::field_value_type_id; ! ignore_unused_variable_warning(id); } }; --- 288,297 ---- // Make sure T inherits field_value (not virtually). // ! fv = static_cast<T *>(base_ptr); // // Make sure T::field_value_type_id exists. // ! id = T::field_value_type_id; } }; |