Ignore:
Timestamp:
06/01/15 20:39:35 (10 years ago)
Author:
epyon
Message:
  • massive C++11 update (upgrade to MSVC 2015)
  • array/dynamic_array - fully based on memory containers (will be moved) (in progress)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/stl/traits/alignment.hh

    r377 r382  
    8686        using aligned_array_t = typename aligned_array< T, Size, Align >::type;
    8787
    88         template< size_t Size, size_t Align = NV_ALIGN_OF( max_align_t ) >
     88        template< size_t Size, size_t Align = alignof( max_align_t ) >
    8989        struct aligned_storage
    9090        {
     
    9595        };
    9696
    97         template< size_t Size, size_t Align = NV_ALIGN_OF( max_align_t ) >
     97        template< size_t Size, size_t Align = alignof( max_align_t ) >
    9898        using aligned_storage_t = typename aligned_storage<Size, Align>::type;
    9999
     
    106106                struct size_max < >
    107107                {
    108                         static const size_t value = 0;
     108                        static constexpr size_t value = 0;
    109109                };
    110110
     
    112112                struct size_max < Size >
    113113                {
    114                         static const size_t value = Size;
     114                        static constexpr size_t value = Size;
    115115                };
    116116
     
    122122        struct aligned_union
    123123        {
    124                 static const size_t max_length = detail::size_max < Size, sizeof( Types )... >::value;
    125                 static const size_t alignment_value = detail::size_max < alignment_of< Types >::value... >::value;
     124                static constexpr size_t max_length = detail::size_max < Size, sizeof( Types )... >::value;
     125                static constexpr size_t alignment_value = detail::size_max < alignment_of< Types >::value... >::value;
    126126                struct type
    127127                {
Note: See TracChangeset for help on using the changeset viewer.