mirror of
https://github.com/boostorg/type_traits.git
synced 2025-08-01 21:44:30 +02:00
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]
This commit is contained in:
@@ -110,8 +110,10 @@ class type_with_alignment
|
||||
|
||||
BOOST_STATIC_CONSTANT(std::size_t, found = alignment_of<align_t>::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;
|
||||
|
Reference in New Issue
Block a user