diff options
Diffstat (limited to 'boost/interprocess/sync/windows/mutex.hpp')
-rw-r--r-- | boost/interprocess/sync/windows/mutex.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/boost/interprocess/sync/windows/mutex.hpp b/boost/interprocess/sync/windows/mutex.hpp index 477acd396a..0b1958cfb7 100644 --- a/boost/interprocess/sync/windows/mutex.hpp +++ b/boost/interprocess/sync/windows/mutex.hpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2005-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2005-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -11,7 +11,7 @@ #ifndef BOOST_INTERPROCESS_DETAIL_WINDOWS_MUTEX_HPP #define BOOST_INTERPROCESS_DETAIL_WINDOWS_MUTEX_HPP -#if (defined _MSC_VER) && (_MSC_VER >= 1200) +#if defined(_MSC_VER) # pragma once #endif @@ -57,8 +57,8 @@ inline windows_mutex::windows_mutex() bool open_or_created; (void)handles.obtain_mutex(this->id_, &open_or_created); //The mutex must be created, never opened - assert(open_or_created); - assert(open_or_created && winapi::get_last_error() != winapi::error_already_exists); + BOOST_ASSERT(open_or_created); + BOOST_ASSERT(open_or_created && winapi::get_last_error() != winapi::error_already_exists); (void)open_or_created; } |