From b34dbf1312c81b97228b79bc2849652cc4a6fb08 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 26 May 2003 21:15:04 +0000 Subject: [PATCH] PowerPC doesn't require strict alignment; therefore we can tolerate types with a default alignment which does not evenly divide any alignment of a POD type we can think of. [SVN r18553] --- include/boost/type_traits/type_with_alignment.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/type_traits/type_with_alignment.hpp b/include/boost/type_traits/type_with_alignment.hpp index b7e90dc..69868b6 100644 --- a/include/boost/type_traits/type_with_alignment.hpp +++ b/include/boost/type_traits/type_with_alignment.hpp @@ -110,8 +110,10 @@ class type_with_alignment BOOST_STATIC_CONSTANT(std::size_t, found = alignment_of::value); +#if !(defined(__APPLE__) && defined(__MACH__) && defined(__GNUC__)) BOOST_STATIC_ASSERT(found >= Align); BOOST_STATIC_ASSERT(found % Align == 0); +#endif public: typedef align_t type;