Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84301 - trunk/boost/asio/detail
From: chris_at_[hidden]
Date: 2013-05-16 17:34:55


Author: chris_kohlhoff
Date: 2013-05-16 17:34:54 EDT (Thu, 16 May 2013)
New Revision: 84301
URL: http://svn.boost.org/trac/boost/changeset/84301

Log:
Enable handler type requirements static_assert on clang.

Text files modified:
   trunk/boost/asio/detail/handler_type_requirements.hpp | 5 +++++
   1 files changed, 5 insertions(+), 0 deletions(-)

Modified: trunk/boost/asio/detail/handler_type_requirements.hpp
==============================================================================
--- trunk/boost/asio/detail/handler_type_requirements.hpp (original)
+++ trunk/boost/asio/detail/handler_type_requirements.hpp 2013-05-16 17:34:54 EDT (Thu, 16 May 2013)
@@ -42,6 +42,11 @@
 # define BOOST_ASIO_ENABLE_HANDLER_TYPE_REQUIREMENTS_ASSERT 1
 # endif // (_MSC_VER >= 1600)
 # endif // defined(BOOST_MSVC)
+# if defined(__clang__)
+# if __has_feature(cxx_static_assert)
+# define BOOST_ASIO_ENABLE_HANDLER_TYPE_REQUIREMENTS_ASSERT 1
+# endif // __has_feature(cxx_static_assert)
+# endif // defined(__clang__)
 #endif // !defined(BOOST_ASIO_DISABLE_HANDLER_TYPE_REQUIREMENTS)
 
 namespace boost {


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