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:
@@ -331,12 +331,10 @@ void ArraysTestCase::wxStringArrayTest()
|
||||
a5.assign(a1.begin(), a1.end());
|
||||
CPPUNIT_ASSERT( a5 == a1 );
|
||||
|
||||
#ifdef wxHAS_VECTOR_TEMPLATE_ASSIGN
|
||||
const wxString months[] = { "Jan", "Feb", "Mar" };
|
||||
a5.assign(months, months + WXSIZEOF(months));
|
||||
CPPUNIT_ASSERT_EQUAL( WXSIZEOF(months), a5.size() );
|
||||
CPPUNIT_ASSERT( COMPARE_3_VALUES(a5, "Jan", "Feb", "Mar") );
|
||||
#endif // wxHAS_VECTOR_TEMPLATE_ASSIGN
|
||||
|
||||
a5.clear();
|
||||
CPPUNIT_ASSERT_EQUAL( 0, a5.size() );
|
||||
@@ -624,8 +622,7 @@ namespace
|
||||
{
|
||||
|
||||
template <typename A, typename T>
|
||||
void DoTestSwap(T v1, T v2, T v3,
|
||||
A * WXUNUSED(dummyUglyVC6Workaround))
|
||||
void DoTestSwap(T v1, T v2, T v3)
|
||||
{
|
||||
A a1, a2;
|
||||
a1.swap(a2);
|
||||
@@ -653,10 +650,10 @@ void DoTestSwap(T v1, T v2, T v3,
|
||||
|
||||
void ArraysTestCase::Swap()
|
||||
{
|
||||
DoTestSwap("Foo", "Bar", "Baz", (wxArrayString *)NULL);
|
||||
DoTestSwap<wxArrayString>("Foo", "Bar", "Baz");
|
||||
|
||||
DoTestSwap(1, 10, 100, (wxArrayInt *)NULL);
|
||||
DoTestSwap(6, 28, 496, (wxArrayLong *)NULL);
|
||||
DoTestSwap<wxArrayInt>(1, 10, 100);
|
||||
DoTestSwap<wxArrayLong>(6, 28, 496);
|
||||
}
|
||||
|
||||
void ArraysTestCase::TestSTL()
|
||||
|
Reference in New Issue
Block a user