Boost C++ Libraries: Ticket #5129: Doesn't handle alignment correctly https://svn.boost.org/trac10/ticket/5129 <p> The following example won't compile on VS 2008 boost v 1.44: </p> <pre class="wiki">#include "boost/bind.hpp" #include "xmmintrin.h" void example( const __m128&amp; ) {} int main() { boost::bind( example, __m128() )(); } </pre><p> The reason being that <span class="underline">m128 doesn't have default alignment, causing the following error: "error C2719: 'a1': formal parameter with </span>declspec(align('16')) won't be aligned". The example function in this case would be able to take the argument, the culprit is in the constructor of list1 which takes accepts by value, when in this case we'd need to accept by const reference ( I presume without being familiar with the details of binds implementation ). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5129 Trac 1.4.3 anonymous Thu, 27 Jan 2011 13:08:58 GMT version changed https://svn.boost.org/trac10/ticket/5129#comment:1 https://svn.boost.org/trac10/ticket/5129#comment:1 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.45.0</span> → <span class="trac-field-new">Boost 1.44.0</span> </li> </ul> Ticket viboes Mon, 22 Oct 2012 22:17:31 GMT description changed https://svn.boost.org/trac10/ticket/5129#comment:2 https://svn.boost.org/trac10/ticket/5129#comment:2 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/5129?action=diff&amp;version=2">diff</a>) </li> </ul> Ticket Peter Dimov Wed, 11 Dec 2013 18:25:06 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5129#comment:3 https://svn.boost.org/trac10/ticket/5129#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> __m128 arguments are generally a nuisance and I'm not sure what we can do about that. </p> Ticket