[C++-sig] Re: Mac OS 10 & type_with_alignment.hpp

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Thu May 22 19:00:51 CEST 2003


--- David Abrahams <dave at boost-consulting.com> wrote:
> After passing this through Leor Zolman's STLFilt.pl script to make the
> long messages readable (love that script!), I see that it's having a
> problem deducing the alignment of your histogram class.
> 
> Could you make the following patch to
> boost/type_traits/type_with_alignment.hpp just to see what happens?

I also had to replace "11" by "12". My patch relative to the 1.30.0 release is
attached for verification purposes. The compiler still issues the "application
of `sizeof' to an incomplete type" error. The result of passing the error
message through gSTLFilt.pl is available here:

http://cci.lbl.gov/~rwgk/tmp/fh2_2.g++_errors_stlfilt

Ralf

% cvs -q diff -r1.1.1.1
Index: type_with_alignment.hpp
===================================================================
RCS file:
/net/cci/cvs/boost_1_30_0_cci/boost/type_traits/type_with_alignment.hpp,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 type_with_alignment.hpp
36c36
< class alignment_dummy;
---
> class alignment_dummy {};
42c42
<         11, ( \
---
>         12, ( \
44c44
<         , void*, function_ptr, member_ptr, member_function_ptr))
---
>         , void*, function_ptr, member_ptr, member_function_ptr,
alignment_dummy))
108a109,110
> #if !(defined(__APPLE__) && defined(__MACH__) \
>  && defined(__GNUC__) && __GNUC__ == 3 && __GNUC_MINOR__ == 3)
109a112
> #endif


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com




More information about the Cplusplus-sig mailing list