Remove MSVC6 support.
Don't support this compiler any more, this allows to get rid of tons of MSVC6-specific workarounds, in particular we can now use Bind() and natural template functions calls in the library code. Also remove MSVC6 project and solution files and don't generate them when bakefile_gen is ran any more (removing the remaining occurrences of msvc6prj from the bakefiles results in weird bake-time errors, so it's simpler to just leave them there). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -215,7 +215,7 @@ public:
|
||||
}
|
||||
|
||||
// get a ref to the stored data
|
||||
template<typename T> T& Get(wxTEMPLATED_MEMBER_FIX(T))
|
||||
template<typename T> T& Get()
|
||||
{
|
||||
wxVariantDataT<T> *dataptr =
|
||||
wx_dynamic_cast(wxVariantDataT<T>*, m_data);
|
||||
@@ -225,7 +225,7 @@ public:
|
||||
}
|
||||
|
||||
// get a const ref to the stored data
|
||||
template<typename T> const T& Get(wxTEMPLATED_MEMBER_FIX(T)) const
|
||||
template<typename T> const T& Get() const
|
||||
{
|
||||
const wxVariantDataT<T> *dataptr =
|
||||
wx_dynamic_cast(const wxVariantDataT<T>*, m_data);
|
||||
@@ -234,7 +234,7 @@ public:
|
||||
return dataptr->Get();
|
||||
}
|
||||
|
||||
template<typename T> bool HasData(wxTEMPLATED_MEMBER_FIX(T)) const
|
||||
template<typename T> bool HasData() const
|
||||
{
|
||||
const wxVariantDataT<T> *dataptr =
|
||||
wx_dynamic_cast(const wxVariantDataT<T>*, m_data);
|
||||
@@ -266,11 +266,11 @@ template<typename T>
|
||||
void wxStringWriteValue( wxString &s, const T &data);
|
||||
|
||||
template<typename T>
|
||||
void wxToStringConverter( const wxVariantBase &v, wxString &s wxTEMPLATED_FUNCTION_FIX(T)) \
|
||||
{ wxStringWriteValue( s, v.wxTEMPLATED_MEMBER_CALL(Get, T) ); }
|
||||
void wxToStringConverter( const wxVariantBase &v, wxString &s ) \
|
||||
{ wxStringWriteValue( s, v.Get<T>() ); }
|
||||
|
||||
template<typename T>
|
||||
void wxFromStringConverter( const wxString &s, wxVariantBase &v wxTEMPLATED_FUNCTION_FIX(T)) \
|
||||
void wxFromStringConverter( const wxString &s, wxVariantBase &v ) \
|
||||
{ T d; wxStringReadValue( s, d ); v = wxVariantBase(d); }
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user