Boost logo

Boost :

From: Ralf W. Grosse-Kunstleve (rwgk_at_[hidden])
Date: 2003-05-19 18:27:46

  Mac OS 10.2
  gcc 3.3 compiled from sources
  boost cvs from last Friday

When porting the Boost.Python bindings for some custom libraries I ran
into a problem with static asserts in type_with_alignment.hpp:

Index: type_with_alignment.hpp
RCS file: /cvsroot/boost/boost/boost/type_traits/type_with_alignment.hpp,v
retrieving revision 1.10
diff -u -r1.10 type_with_alignment.hpp
--- type_with_alignment.hpp 16 Apr 2003 13:36:07 -0000 1.10
+++ type_with_alignment.hpp 19 May 2003 23:08:01 -0000
@@ -110,8 +110,10 @@
     BOOST_STATIC_CONSTANT(std::size_t, found = alignment_of<align_t>::value);
+#if !(defined(__APPLE__) && defined(__MACH__) && defined(__GNUC__)) // XXX
     BOOST_STATIC_ASSERT(found >= Align);
     BOOST_STATIC_ASSERT(found % Align == 0);
     typedef align_t type;

This patch allows me to compile and link, and our regression test
runs fine.

Reducing my code to a minimal test is most likely a time-consuming
project that I'd like to avoid if possible (compilation is quite slow
to make things worse). Do the authors of the code above have any ideas
what could be going wrong? Are there things that I could try first
before chopping my code into pieces?

Thank you in advance!

Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

Boost list run by bdawes at, gregod at, cpdaniel at, john at