Changes between Initial Version and Version 2 of Ticket #5129


Ignore:
Timestamp:
Oct 22, 2012, 10:17:31 PM (10 years ago)
Author:
viboes
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5129

    • Property Version Boost 1.45.0Boost 1.44.0
  • Ticket #5129 – Description

    initial v2  
    11The following example won't compile on VS 2008 boost v 1.44:
    22
     3
     4{{{
    35#include "boost/bind.hpp"
    46#include "xmmintrin.h"
     
    1113        boost::bind( example, __m128() )();
    1214}
     15}}}
     16
    1317
    1418The reason being that __m128 doesn't have default alignment, causing the following error: "error C2719: 'a1': formal parameter with __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 ).