|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r51620 - trunk/boost/signals2/detail
From: fmhess_at_[hidden]
Date: 2009-03-05 08:33:41
Author: fmhess
Date: 2009-03-05 08:33:40 EST (Thu, 05 Mar 2009)
New Revision: 51620
URL: http://svn.boost.org/trac/boost/changeset/51620
Log:
Trying to work around msvc 9 apparently compiling unused member f
unctions in templates.
Text files modified:
trunk/boost/signals2/detail/lwm_win32_cs.hpp | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
Modified: trunk/boost/signals2/detail/lwm_win32_cs.hpp
==============================================================================
--- trunk/boost/signals2/detail/lwm_win32_cs.hpp (original)
+++ trunk/boost/signals2/detail/lwm_win32_cs.hpp 2009-03-05 08:33:40 EST (Thu, 05 Mar 2009)
@@ -18,6 +18,7 @@
# pragma once
#endif
+#include <boost/assert.hpp>
#ifdef BOOST_USE_WINDOWS_H
# include <windows.h>
@@ -88,6 +89,12 @@
{
return TryEnterCriticalSection(&cs_) != 0;
}
+#else
+ bool try_lock()
+ {
+ BOOST_ASSERT(false);
+ return false;
+ }
#endif
void unlock()
{
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk