Skip to content

Commit dcdf5ff

Browse files
author
Koen Deforche
committed
fixes for MSVC2010
1 parent a5e4c3b commit dcdf5ff

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ IF(NOT SHARED_LIBS)
4343
ENDIF(WIN32)
4444
ENDIF(NOT SHARED_LIBS)
4545

46+
IF(WIN32)
47+
IF(SHARED_LIBS)
48+
# See http://svn.boost.org/trac/boost/ticket/3465
49+
SET(WT_NO_BOOST_INTRUSIVE true)
50+
ENDIF(SHARED_LIBS)
51+
ENDIF(WIN32)
52+
4653
# Fixup Windows declspec stuff
4754
IF(NOT SHARED_LIBS)
4855
SET(WT_STATIC true)

WConfig.h.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
#cmakedefine WT_HAS_WRASTERIMAGE
3030
#cmakedefine WT_HAS_WPDFIMAGE
3131

32+
#cmakedefine WT_NO_BOOST_INTRUSIVE
33+
3234
#if ${WT_DEBUG_ENABLED}
3335
#ifndef WT_TARGET_JAVA
3436
#define WT_DEBUG(statement) do { if (Wt::WApplication::instance()->debug()) statement; } while(0)

src/Wt/WSignal

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@
1010
#include <Wt/WObject>
1111
#include <bitset>
1212

13-
#if defined(WIN32) && defined(wt_EXPORTS)
14-
// boost intrusive compilation fails with static asserts when Wt is compiled
15-
// as a DLL on windows. This hack makes all static asserts succeed.
16-
namespace boost {
17-
template<bool x> struct STATIC_ASSERTION_FAILURE { enum { value = 1 }; };
18-
}
19-
#endif
20-
2113
#include <boost/bind.hpp>
2214
#include <boost/intrusive/list.hpp>
2315
#include <boost/signal.hpp>
@@ -441,9 +433,9 @@ public:
441433
* \ingroup signalslot
442434
*/
443435
class WT_API EventSignalBase : public SignalBase
444-
#ifndef WT_TARGET_JAVA
436+
#if !(defined(WT_TARGET_JAVA) || defined(WT_NO_BOOST_INTRUSIVE))
445437
,public boost::intrusive::list_base_hook<>
446-
#endif // WT_TARGET_JAVA
438+
#endif
447439
{
448440
public:
449441
virtual ~EventSignalBase();

0 commit comments

Comments
 (0)