.NET limitation for __declspec(align(16))

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Emil Dotchevski

    #1

    .NET limitation for __declspec(align(16))

    I wanted to request a fix that is not technically a bug, but is pretty
    close in my opinion.

    Version 7.1 does not allow functions that take arguments by value of
    types defined with __declspec(alig n(16)). What makes the problem worse
    is that there are some commonly used standard library functions, such
    as std::vector::re size, which do not compile for aligned types.
    (Curiously, this is not an issue when returning objects by value,
    which works just fine.)

    I see no reason for this limitation, after all, there are platforms
    where passing objects with alignment requirements is a must, and other
    C++ compilers have no problem with this.

    Thanks,
    Emil
Working...