Ticket #11669: converter_lexical.hpp.patch

File converter_lexical.hpp.patch, 1.3 KB (added by Juan Alday <alday.boost.trac@…>, 7 years ago)
  • boost/lexical_cast/detail/converter_lexical.hpp

    diff -Naur a/boost/lexical_cast/detail/converter_lexical.hpp b/boost/lexical_cast/detail/converter_lexical.hpp
    a b  
    364364#endif
    365365        };
    366366
    367 #ifndef BOOST_LCAST_NO_COMPILE_TIME_PRECISION
    368367        // Helper for floating point types.
    369368        // -1.23456789e-123456
    370369        // ^                   sign
     
    380379                Source, BOOST_DEDUCED_TYPENAME boost::enable_if<boost::is_float<Source> >::type
    381380            >
    382381        {
     382#ifndef BOOST_LCAST_NO_COMPILE_TIME_PRECISION
    383383            BOOST_STATIC_ASSERT(
    384384                    std::numeric_limits<Source>::max_exponent10 <=  999999L &&
    385385                    std::numeric_limits<Source>::min_exponent10 >= -999999L
     
    388388            BOOST_STATIC_CONSTANT(std::size_t, value =
    389389                    5 + lcast_precision<Source>::value + 6
    390390                );
    391         };
     391#else
     392            BOOST_STATIC_CONSTANT(std::size_t, value = 156);
    392393#endif // #ifndef BOOST_LCAST_NO_COMPILE_TIME_PRECISION
     394        };
    393395    }
    394396
    395397    namespace detail // lexical_cast_stream_traits<Source, Target>