From f176e0a26d050dced1385a6c6de934d16553f6da Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Sun, 6 Dec 2015 11:58:11 +0000 Subject: [PATCH] Apply patch https://svn.boost.org/trac/boost/ticket/11831 for clang. --- include/boost/type_traits/type_with_alignment.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/type_traits/type_with_alignment.hpp b/include/boost/type_traits/type_with_alignment.hpp index bfd5476..ffa054a 100644 --- a/include/boost/type_traits/type_with_alignment.hpp +++ b/include/boost/type_traits/type_with_alignment.hpp @@ -84,7 +84,7 @@ struct type_with_alignment typedef typename boost::detail::char_alignment::value >= Align>::type type; }; -#if (defined(__GNUC__) || (defined (__SUNPRO_CC) && (__SUNPRO_CC >= 0x5130))) && !defined(BOOST_TT_DISABLE_INTRINSICS) +#if (defined(__GNUC__) || (defined (__SUNPRO_CC) && (__SUNPRO_CC >= 0x5130)) || defined(__clang__)) && !defined(BOOST_TT_DISABLE_INTRINSICS) namespace tt_align_ns { struct __attribute__((__aligned__(2))) a2 {}; struct __attribute__((__aligned__(4))) a4 {};