2
0
mirror of https://github.com/boostorg/json.git synced 2026-02-01 08:32:13 +00:00
Commit Graph

699 Commits

Author SHA1 Message Date
Vinnie Falco
bfacd2bfd8 Update docca config 2020-11-18 07:27:17 -08:00
Vinnie Falco
9e67899cd5 Support standalone shared libraries
fix #467
2020-11-17 16:57:22 -08:00
Richard Hodges
21cdb11346 Fix value_to and value_from for MSVC-14.0:
close #465

value_to and value_from was incorrectly deducing that std::string was
"array-like" rather than "string-like", but only on msvc-14.0

Original test:

template<class T, typename std::enable_if<
    std::is_constructible<remove_cvref<T>, const char*, std::size_t>::value &&
    std::is_convertible<decltype(std::declval<T&>().data()), const char*>::value &&
    std::is_convertible<decltype(std::declval<T&>().size()), std::size_t>::value
>::type* = nullptr>

Which works for all compilers except msvc-14.0

New test:

template<class T, typename std::enable_if<
    std::is_constructible<remove_cvref<T>, const char*, std::size_t>::value &&
    std::is_convertible<decltype(std::declval<T&>().data()), const char*>::value &&
    std::is_integral<decltype(std::declval<T&>().size())>::value
>::type* = nullptr>

Note that each individual test works on all compilers. It seems to be
the conjuction of tests that caused msvc-14 to trip up.
2020-11-17 16:57:22 -08:00
Vinnie Falco
38c31a1812 Safer shared library behavior:
This solves a problem where there is more than
one instance of the library loaded into the process
and objects are shared across module boundaries.
2020-11-17 11:44:10 -08:00
Vinnie Falco
499ef7d4b1 Revert "Add value::is_integral"
This reverts commit 099a82957a.
2020-11-17 11:44:10 -08:00
Vinnie Falco
099a82957a Add value::is_integral 2020-11-16 10:18:48 -08:00
Vinnie Falco
76ee8891d2 Add GH issue template 2020-11-16 09:34:13 -08:00
Vinnie Falco
512a8478de gcc 4.7 is not supported 2020-11-16 09:16:40 -08:00
Vinnie Falco
f8d2c7617e Disable unreachable code warning 2020-11-16 09:16:40 -08:00
Vinnie Falco
ee8d72d850 Fix value to_number warning for lossy conversion boost-1.75.0.beta1 2020-11-03 19:23:36 -08:00
Krystian Stasiowski
4e3dd6f4c7 Prerelease versions do not use -Werror
close #462
2020-11-02 10:16:12 -08:00
Vinnie Falco
bd735aa673 Disable g++11 pre-release on Travis 2020-10-30 17:05:31 -07:00
Vinnie Falco
1d79785653 Use static cast instead of dynamic cast 2020-10-30 15:57:47 -07:00
Vinnie Falco
6f4cead649 Remove UB in storage_ptr 2020-10-30 14:45:14 -07:00
Vinnie Falco
8453a2980e Use safe sprintf on win targets 2020-10-30 10:50:15 -07:00
Vinnie Falco
74fb1effd1 Squelch class dllexport warning 2020-10-30 10:50:15 -07:00
Krystian Stasiowski
3a39b8cf9f Fix out-of-bounds warning on g++11 2020-10-30 10:50:15 -07:00
Krystian Stasiowski
0366d4ce64 Add missing include for g++11 2020-10-30 10:50:15 -07:00
Krystian Stasiowski
c036f3db9c Fix implicit floating-point conversion warnings 2020-10-30 10:50:15 -07:00
Vinnie Falco
e330361ded Disable Intel and g++11 2020-10-30 10:50:15 -07:00
Krystian Stasiowski
f29fe71de5 Refactor CI 2020-10-29 13:26:12 -07:00
Vinnie Falco
52f1d0b30b Small object uses linear search 2020-10-27 14:42:36 -07:00
Krystian Stasiowski
2b074ee053 value_to/from don't use user-provided conversion functions 2020-10-27 14:03:52 -07:00
Krystian Stasiowski
99a013818a tag_invoke exposition
fix #411
2020-10-27 14:03:52 -07:00
Vinnie Falco
c02fd6339a object::at is inline 2020-10-25 13:45:17 -07:00
Vinnie Falco
d81bc2f944 Disable Travis Intel target 2020-10-25 13:14:36 -07:00
Peter Dimov
2e9366a2d6 Remove use of std::pow from pow10/dec_to_float 2020-10-24 12:12:48 -07:00
Peter Dimov
2d4bea29bd Add tests for 1e-326..1e+309 2020-10-24 12:12:48 -07:00
Vinnie Falco
b4e40998e5 digest is inline 2020-10-23 11:39:37 -07:00
Richard Hodges
bfc8665d6d Fix visit for const values 2020-10-22 20:53:43 +02:00
Richard Hodges
3f2fb68be5 Improved tests for string to double
close #447
2020-10-21 11:39:30 -07:00
Vinnie Falco
9d27d48cad Initialize pad for constexpr construction 2020-10-21 11:33:31 -07:00
Vinnie Falco
3f85abfe29 Tidy up Jamfile 2020-10-21 11:24:48 -07:00
Vinnie Falco
38fc9ca21e Use constant for c11-requires 2020-10-21 11:01:34 -07:00
Krystian Stasiowski
8f42799020 Update benchmarks
close #450
2020-10-21 10:50:31 -07:00
Krystian Stasiowski
6a7d34117c C++11 is required
fix #451, close #452
2020-10-21 10:50:19 -07:00
Krystian Stasiowski
980ae37dbc Fix msvc anonymous union member lookup bug 2020-10-21 09:54:42 -07:00
Krystian Stasiowski
d5d2dfd648 Use alignas(T) over alignas(alignof(T)) 2020-10-21 09:54:42 -07:00
Krystian Stasiowski
a09d596781 Use is_same over is_same_v 2020-10-21 09:54:42 -07:00
Vinnie Falco
eff84d5b7f Avoid digraphs 2020-10-21 08:15:22 -07:00
Vinnie Falco
7e9462454a Tidy up doxygen config file 2020-10-18 09:16:43 -07:00
Vinnie Falco
37cb1b4d90 No redundant checks building objects
fix #231
2020-10-16 13:12:42 -07:00
Vinnie Falco
18a50dae83 Better decimal to float accuracy 2020-10-09 10:22:59 -07:00
Vinnie Falco
844851c6ab Refactor object 2020-10-09 10:15:02 -07:00
Vinnie Falco
1b5a00e968 Return storage_ptr by reference 2020-10-08 14:05:37 -07:00
Maximilian Riemensberger
9a42dbbaab Use relaxed increment and acquire_release decrement for atomic reference counts 2020-10-08 14:04:26 -07:00
Richard Hodges
ff6a090680 Fix parsing of double with >16 mantissa digits 2020-10-08 14:01:59 -07:00
Vinnie Falco
5098730a87 Add requirements to library Jamfile 2020-10-07 16:08:38 -07:00
Vinnie Falco
8f26e86b2f Don't destroy in object_impl::build 2020-10-06 13:05:47 -07:00
Vinnie Falco
0a905acf9d Tidy up pilfering 2020-10-06 11:59:58 -07:00