diff --git a/include/wx/valnum.h b/include/wx/valnum.h index 428fe7ff8a..5971e612a6 100644 --- a/include/wx/valnum.h +++ b/include/wx/valnum.h @@ -135,11 +135,17 @@ public: typedef typename BaseValidator::LongestValueType LongestValueType; + // FIXME-VC6: This compiler fails to compile the assert below with a + // nonsensical error C2248: "'LongestValueType' : cannot access protected + // typedef declared in class 'wxIntegerValidatorBase'" so just disable the + // check for it. +#ifndef __VISUALC6__ wxCOMPILE_TIME_ASSERT ( sizeof(ValueType) <= sizeof(LongestValueType), UnsupportedType ); +#endif // __VISUALC6__ void SetMin(ValueType min) {