Browse Source

Workaround of MSVC10 optimization bug that prevented from CppCMS to compile with release build

master
Artyom Beilis 12 years ago
parent
commit
bb910e6d8e
1 changed files with 9 additions and 2 deletions
  1. +9
    -2
      booster/lib/aio/src/reactor.cpp

+ 9
- 2
booster/lib/aio/src/reactor.cpp View File

@@ -705,7 +705,12 @@ namespace aio {
#endif



#if defined _MSC_VER && _MSC_VER == 1600
reactor::reactor(int /*hint*/)
{
impl_.reset(new w32_select_reactor());
}
#else // Normal compiler
reactor::reactor(int hint)
{
static const int default_poll =
@@ -767,8 +772,10 @@ namespace aio {
throw booster::runtime_error("Internal error - no poller found");
}
}

}
#endif
reactor::~reactor() {}

std::string reactor::name() const


Loading…
Cancel
Save