Boost C++ Libraries: Ticket #1314: Using SSE-intrinsics in VC8 causes static assert in type_with_alignment.hpp https://svn.boost.org/trac10/ticket/1314 <p> When I create a class containing the SSE-intrinsic m128 in VC8 and try to serialize it with the boost serialization library the following static assert in type_with_alignment is triggered: </p> <pre class="wiki">BOOST_STATIC_ASSERT(found % Align == 0); </pre><p> Align is in my case 8 and the SSE-intrinsics are aligned to 16. Including m128 in BOOST_TT_ALIGNMENT_BASE_TYPES fixes the problem: </p> <pre class="wiki">#define BOOST_TT_ALIGNMENT_BASE_TYPES BOOST_PP_TUPLE_TO_LIST( \ 13, ( \ char, short, int, long, ::boost::long_long_type, float, double, long double \ , void*, function_ptr, member_ptr, member_function_ptr, __m128)) </pre><p> I guess that many other compilers have their own SSE-intrinsics defined so a more generic solution would of course be desirable. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1314 Trac 1.4.3 John Maddock Sat, 10 Nov 2007 17:43:01 GMT <link>https://svn.boost.org/trac10/ticket/1314#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1314#comment:1</guid> <description> <p> As mentioned on the list, I won't destabilise the 1.35 release by fixing this yet, but I will for 1.36 if possible. </p> <p> John Maddock. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Tue, 11 Dec 2007 19:14:02 GMT</pubDate> <title>status, milestone changed https://svn.boost.org/trac10/ticket/1314#comment:2 https://svn.boost.org/trac10/ticket/1314#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.36.0</span> </li> </ul> Ticket John Maddock Sun, 30 Mar 2008 17:27:07 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1314#comment:3 https://svn.boost.org/trac10/ticket/1314#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> I believe this should be fixed in SVN Trunk now with revision <a class="missing ticket">#43952</a>. </p> <p> Regards, John. </p> Ticket