Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 932579 | Differences between
and this patch

Collapse All | Expand All

(-)a/include/boost/charconv/detail/bit_layouts.hpp (+1 lines)
Lines 127-132 struct IEEEl2bits Link Here
127
127
128
#else // Unsupported long double representation
128
#else // Unsupported long double representation
129
#  define BOOST_MATH_UNSUPPORTED_LONG_DOUBLE
129
#  define BOOST_MATH_UNSUPPORTED_LONG_DOUBLE
130
#  define BOOST_CHARCONV_LDBL_BITS -1
130
#endif
131
#endif
131
132
132
struct IEEEbinary128
133
struct IEEEbinary128
(-)a/include/boost/charconv/from_chars.hpp (+12 lines)
Lines 139-145 BOOST_CHARCONV_GCC5_CONSTEXPR from_chars_result from_chars(boost::core::string_v Link Here
139
139
140
BOOST_CHARCONV_DECL from_chars_result from_chars_erange(const char* first, const char* last, float& value, chars_format fmt = chars_format::general) noexcept;
140
BOOST_CHARCONV_DECL from_chars_result from_chars_erange(const char* first, const char* last, float& value, chars_format fmt = chars_format::general) noexcept;
141
BOOST_CHARCONV_DECL from_chars_result from_chars_erange(const char* first, const char* last, double& value, chars_format fmt = chars_format::general) noexcept;
141
BOOST_CHARCONV_DECL from_chars_result from_chars_erange(const char* first, const char* last, double& value, chars_format fmt = chars_format::general) noexcept;
142
143
#ifndef BOOST_MATH_UNSUPPORTED_LONG_DOUBLE
142
BOOST_CHARCONV_DECL from_chars_result from_chars_erange(const char* first, const char* last, long double& value, chars_format fmt = chars_format::general) noexcept;
144
BOOST_CHARCONV_DECL from_chars_result from_chars_erange(const char* first, const char* last, long double& value, chars_format fmt = chars_format::general) noexcept;
145
#endif
143
146
144
#ifdef BOOST_CHARCONV_HAS_QUADMATH
147
#ifdef BOOST_CHARCONV_HAS_QUADMATH
145
BOOST_CHARCONV_DECL from_chars_result from_chars_erange(const char* first, const char* last, __float128& value, chars_format fmt = chars_format::general) noexcept;
148
BOOST_CHARCONV_DECL from_chars_result from_chars_erange(const char* first, const char* last, __float128& value, chars_format fmt = chars_format::general) noexcept;
Lines 164-170 BOOST_CHARCONV_DECL from_chars_result from_chars_erange(const char* first, const Link Here
164
167
165
BOOST_CHARCONV_DECL from_chars_result from_chars_erange(boost::core::string_view sv, float& value, chars_format fmt = chars_format::general) noexcept;
168
BOOST_CHARCONV_DECL from_chars_result from_chars_erange(boost::core::string_view sv, float& value, chars_format fmt = chars_format::general) noexcept;
166
BOOST_CHARCONV_DECL from_chars_result from_chars_erange(boost::core::string_view sv, double& value, chars_format fmt = chars_format::general) noexcept;
169
BOOST_CHARCONV_DECL from_chars_result from_chars_erange(boost::core::string_view sv, double& value, chars_format fmt = chars_format::general) noexcept;
170
171
#ifndef BOOST_MATH_UNSUPPORTED_LONG_DOUBLE
167
BOOST_CHARCONV_DECL from_chars_result from_chars_erange(boost::core::string_view sv, long double& value, chars_format fmt = chars_format::general) noexcept;
172
BOOST_CHARCONV_DECL from_chars_result from_chars_erange(boost::core::string_view sv, long double& value, chars_format fmt = chars_format::general) noexcept;
173
#endif
168
174
169
#ifdef BOOST_CHARCONV_HAS_FLOAT128
175
#ifdef BOOST_CHARCONV_HAS_FLOAT128
170
BOOST_CHARCONV_DECL from_chars_result from_chars_erange(boost::core::string_view sv, __float128& value, chars_format fmt = chars_format::general) noexcept;
176
BOOST_CHARCONV_DECL from_chars_result from_chars_erange(boost::core::string_view sv, __float128& value, chars_format fmt = chars_format::general) noexcept;
Lines 193-199 BOOST_CHARCONV_DECL from_chars_result from_chars_erange(boost::core::string_view Link Here
193
199
194
BOOST_CHARCONV_DECL from_chars_result from_chars(const char* first, const char* last, float& value, chars_format fmt = chars_format::general) noexcept;
200
BOOST_CHARCONV_DECL from_chars_result from_chars(const char* first, const char* last, float& value, chars_format fmt = chars_format::general) noexcept;
195
BOOST_CHARCONV_DECL from_chars_result from_chars(const char* first, const char* last, double& value, chars_format fmt = chars_format::general) noexcept;
201
BOOST_CHARCONV_DECL from_chars_result from_chars(const char* first, const char* last, double& value, chars_format fmt = chars_format::general) noexcept;
202
203
#ifndef BOOST_MATH_UNSUPPORTED_LONG_DOUBLE
196
BOOST_CHARCONV_DECL from_chars_result from_chars(const char* first, const char* last, long double& value, chars_format fmt = chars_format::general) noexcept;
204
BOOST_CHARCONV_DECL from_chars_result from_chars(const char* first, const char* last, long double& value, chars_format fmt = chars_format::general) noexcept;
205
#endif
197
206
198
#ifdef BOOST_CHARCONV_HAS_FLOAT128
207
#ifdef BOOST_CHARCONV_HAS_FLOAT128
199
BOOST_CHARCONV_DECL from_chars_result from_chars(const char* first, const char* last, __float128& value, chars_format fmt = chars_format::general) noexcept;
208
BOOST_CHARCONV_DECL from_chars_result from_chars(const char* first, const char* last, __float128& value, chars_format fmt = chars_format::general) noexcept;
Lines 216-222 BOOST_CHARCONV_DECL from_chars_result from_chars(const char* first, const char* Link Here
216
225
217
BOOST_CHARCONV_DECL from_chars_result from_chars(boost::core::string_view sv, float& value, chars_format fmt = chars_format::general) noexcept;
226
BOOST_CHARCONV_DECL from_chars_result from_chars(boost::core::string_view sv, float& value, chars_format fmt = chars_format::general) noexcept;
218
BOOST_CHARCONV_DECL from_chars_result from_chars(boost::core::string_view sv, double& value, chars_format fmt = chars_format::general) noexcept;
227
BOOST_CHARCONV_DECL from_chars_result from_chars(boost::core::string_view sv, double& value, chars_format fmt = chars_format::general) noexcept;
228
229
#ifndef BOOST_MATH_UNSUPPORTED_LONG_DOUBLE
219
BOOST_CHARCONV_DECL from_chars_result from_chars(boost::core::string_view sv, long double& value, chars_format fmt = chars_format::general) noexcept;
230
BOOST_CHARCONV_DECL from_chars_result from_chars(boost::core::string_view sv, long double& value, chars_format fmt = chars_format::general) noexcept;
231
#endif
220
232
221
#ifdef BOOST_CHARCONV_HAS_FLOAT128
233
#ifdef BOOST_CHARCONV_HAS_FLOAT128
222
BOOST_CHARCONV_DECL from_chars_result from_chars(boost::core::string_view sv, __float128& value, chars_format fmt = chars_format::general) noexcept;
234
BOOST_CHARCONV_DECL from_chars_result from_chars(boost::core::string_view sv, __float128& value, chars_format fmt = chars_format::general) noexcept;
(-)a/src/from_chars.cpp (-1 / +7 lines)
Lines 229-235 boost::charconv::from_chars_result boost::charconv::from_chars_erange(const char Link Here
229
    return r;
229
    return r;
230
}
230
}
231
231
232
#else
232
#elif !defined(BOOST_MATH_UNSUPPORTED_LONG_DOUBLE)
233
233
234
boost::charconv::from_chars_result boost::charconv::from_chars_erange(const char* first, const char* last, long double& value, boost::charconv::chars_format fmt) noexcept
234
boost::charconv::from_chars_result boost::charconv::from_chars_erange(const char* first, const char* last, long double& value, boost::charconv::chars_format fmt) noexcept
235
{
235
{
Lines 323-332 boost::charconv::from_chars_result boost::charconv::from_chars_erange(boost::cor Link Here
323
    return boost::charconv::from_chars_erange(sv.data(), sv.data() + sv.size(), value, fmt);
323
    return boost::charconv::from_chars_erange(sv.data(), sv.data() + sv.size(), value, fmt);
324
}
324
}
325
325
326
#ifndef BOOST_MATH_UNSUPPORTED_LONG_DOUBLE
326
boost::charconv::from_chars_result boost::charconv::from_chars_erange(boost::core::string_view sv, long double& value, boost::charconv::chars_format fmt) noexcept
327
boost::charconv::from_chars_result boost::charconv::from_chars_erange(boost::core::string_view sv, long double& value, boost::charconv::chars_format fmt) noexcept
327
{
328
{
328
    return boost::charconv::from_chars_erange(sv.data(), sv.data() + sv.size(), value, fmt);
329
    return boost::charconv::from_chars_erange(sv.data(), sv.data() + sv.size(), value, fmt);
329
}
330
}
331
#endif
330
332
331
#ifdef BOOST_CHARCONV_HAS_QUADMATH
333
#ifdef BOOST_CHARCONV_HAS_QUADMATH
332
boost::charconv::from_chars_result boost::charconv::from_chars_erange(boost::core::string_view sv, __float128& value, boost::charconv::chars_format fmt) noexcept
334
boost::charconv::from_chars_result boost::charconv::from_chars_erange(boost::core::string_view sv, __float128& value, boost::charconv::chars_format fmt) noexcept
Lines 396-405 boost::charconv::from_chars_result boost::charconv::from_chars(const char* first Link Here
396
    return from_chars_strict_impl(first, last, value, fmt);
398
    return from_chars_strict_impl(first, last, value, fmt);
397
}
399
}
398
400
401
#ifndef BOOST_MATH_UNSUPPORTED_LONG_DOUBLE
399
boost::charconv::from_chars_result boost::charconv::from_chars(const char* first, const char* last, long double& value, boost::charconv::chars_format fmt) noexcept
402
boost::charconv::from_chars_result boost::charconv::from_chars(const char* first, const char* last, long double& value, boost::charconv::chars_format fmt) noexcept
400
{
403
{
401
    return from_chars_strict_impl(first, last, value, fmt);
404
    return from_chars_strict_impl(first, last, value, fmt);
402
}
405
}
406
#endif
403
407
404
#ifdef BOOST_CHARCONV_HAS_QUADMATH
408
#ifdef BOOST_CHARCONV_HAS_QUADMATH
405
boost::charconv::from_chars_result boost::charconv::from_chars(const char* first, const char* last, __float128& value, boost::charconv::chars_format fmt) noexcept
409
boost::charconv::from_chars_result boost::charconv::from_chars(const char* first, const char* last, __float128& value, boost::charconv::chars_format fmt) noexcept
Lines 453-462 boost::charconv::from_chars_result boost::charconv::from_chars(boost::core::stri Link Here
453
    return from_chars_strict_impl(sv.data(), sv.data() + sv.size(), value, fmt);
457
    return from_chars_strict_impl(sv.data(), sv.data() + sv.size(), value, fmt);
454
}
458
}
455
459
460
#ifndef BOOST_MATH_UNSUPPORTED_LONG_DOUBLE
456
boost::charconv::from_chars_result boost::charconv::from_chars(boost::core::string_view sv, long double& value, boost::charconv::chars_format fmt) noexcept
461
boost::charconv::from_chars_result boost::charconv::from_chars(boost::core::string_view sv, long double& value, boost::charconv::chars_format fmt) noexcept
457
{
462
{
458
    return from_chars_strict_impl(sv.data(), sv.data() + sv.size(), value, fmt);
463
    return from_chars_strict_impl(sv.data(), sv.data() + sv.size(), value, fmt);
459
}
464
}
465
#endif
460
466
461
#ifdef BOOST_CHARCONV_HAS_QUADMATH
467
#ifdef BOOST_CHARCONV_HAS_QUADMATH
462
boost::charconv::from_chars_result boost::charconv::from_chars(boost::core::string_view sv, __float128& value, boost::charconv::chars_format fmt) noexcept
468
boost::charconv::from_chars_result boost::charconv::from_chars(boost::core::string_view sv, __float128& value, boost::charconv::chars_format fmt) noexcept

Return to bug 932579