Ticket #6410: boost-optional.patch

File boost-optional.patch, 576 bytes (added by Petr Machata <pmachata@…>, 11 years ago)
  • boost/optional/optional.hpp

    diff -urp boost_1_48_0~/boost/optional/optional.hpp boost_1_48_0/boost/optional/optional.hpp
    old new class aligned_storage  
    127127    union
    128128    // This works around GCC warnings about breaking strict aliasing rules when casting storage address to T*
    129129#if defined(BOOST_OPTIONAL_DETAIL_USE_ATTRIBUTE_MAY_ALIAS)
    130     __attribute__((may_alias))
     130    __attribute__((__may_alias__))
    131131#endif
    132132    dummy_u
    133133    {