Skip to content

Commit a4e4f35

Browse files
author
Christian Schulte
committed
Added support for MSVC 2015
git-svn-id: file:///Volumes/GecodeGitMigration/gecode-svn-mirror/gecode/tags/release-4.4.0@14942 e85b7adc-8362-4630-8c63-7469d557c915
1 parent 2fcf3b3 commit a4e4f35

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

gecode/support/thread/windows.hpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,11 @@ namespace Gecode { namespace Support {
8383
}
8484
forceinline
8585
Event::~Event(void) {
86-
if (CloseHandle(w_h) == 0)
87-
throw OperatingSystemError("Event::~Event[Windows::CloseHandle]");
86+
if (CloseHandle(w_h) == 0) {
87+
std::cerr << "Operating system error: "
88+
<< "Event::~Event[Windows::CloseHandle]";
89+
std::terminate();
90+
}
8891
}
8992

9093

gecode/third-party/boost/config/compiler/visualc.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@
273273
#endif
274274
//
275275
// last known and checked version is 1600 (VC10, aka 2010):
276-
// Changed to VC12, aka 2013
277-
#if (_MSC_VER > 1800)
276+
// Changed to VC14, aka 2015
277+
#if (_MSC_VER > 1900)
278278
# if defined(GECODE_BOOST_ASSERT_CONFIG)
279279
# error "Unknown compiler version - please run the configure tests and report the results"
280280
# else

0 commit comments

Comments
 (0)