don't use template assign() with VC6, even though it can compile it it doesn't handle it correctly when using DLL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -92,10 +92,14 @@ public:
|
|||||||
#else // if !wxUSE_STL
|
#else // if !wxUSE_STL
|
||||||
|
|
||||||
// this shouldn't be defined for compilers not supporting template methods or
|
// this shouldn't be defined for compilers not supporting template methods or
|
||||||
// without std::distance() -- and if all of the currently supported compilers
|
// without std::distance()
|
||||||
// do have it, then it can just be removed and wxHAS_VECTOR_TEMPLATE_ASSIGN
|
//
|
||||||
// code always used
|
// FIXME-VC6: currently it's only not defined for VC6 in DLL build as it
|
||||||
#define wxHAS_VECTOR_TEMPLATE_ASSIGN
|
// doesn't export template methods from DLL correctly so even though
|
||||||
|
// it compiles them fine, we get link errors when using wxArrayString
|
||||||
|
#if !defined(__VISUALC6__) || !(defined(WXMAKINGDLL || defined(WXUSINGDLL)))
|
||||||
|
#define wxHAS_VECTOR_TEMPLATE_ASSIGN
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef wxHAS_VECTOR_TEMPLATE_ASSIGN
|
#ifdef wxHAS_VECTOR_TEMPLATE_ASSIGN
|
||||||
#include "wx/beforestd.h"
|
#include "wx/beforestd.h"
|
||||||
|
Reference in New Issue
Block a user