Ticket #6182: boost-1.48.0-lexical_cast-incomplete.patch

File boost-1.48.0-lexical_cast-incomplete.patch, 1.4 KB (added by pmachata@…, 11 years ago)

Proposed fix

  • boost_1_48_0/boost/lexical_cast.hpp

    diff -up boost_1_48_0/boost/lexical_cast.hpp\~ boost_1_48_0/boost/lexical_cast.hpp
    old new namespace boost  
    15991599        };
    16001600
    16011601        template<typename T>
     1602        struct is_char
     1603        {
     1604            BOOST_STATIC_CONSTANT(bool, value = false );
     1605        };
     1606
     1607        template<>
     1608        struct is_char<char>
     1609        {
     1610            BOOST_STATIC_CONSTANT(bool, value = true );
     1611        };
     1612
     1613        template<typename T>
    16021614        struct is_char_or_wchar
    16031615        {
    16041616        private:
    namespace boost  
    17321744                                 is_arithmetic<src >::value,
    17331745                                 ::boost::type_traits::ice_and<
    17341746                                     is_pointer<src >::value,
    1735                                      is_char_or_wchar<removed_ptr_t >::value,
    1736                                      ::boost::type_traits::ice_eq<
    1737                                         sizeof(char_type),
    1738                                         sizeof(removed_ptr_t)
    1739                                      >::value
     1747                                     is_char<removed_ptr_t >::value
    17401748                                 >::value
    17411749                             >::value
    17421750                        );