mirror of
https://github.com/nlohmann/json.git
synced 2024-08-22 21:12:27 +02:00
implemented idea from #290
This commit is contained in:
parent
f76f9efe58
commit
6e6e1c9b1f
|
@ -5942,7 +5942,7 @@ class basic_json
|
||||||
template<typename CharPT, typename std::enable_if<
|
template<typename CharPT, typename std::enable_if<
|
||||||
std::is_pointer<CharPT>::value and
|
std::is_pointer<CharPT>::value and
|
||||||
std::is_integral<typename std::remove_pointer<CharPT>::type>::value and
|
std::is_integral<typename std::remove_pointer<CharPT>::type>::value and
|
||||||
sizeof(std::remove_pointer<CharPT>) == 1, int>::type = 0>
|
sizeof(typename std::remove_pointer<CharPT>::type) == 1, int>::type = 0>
|
||||||
static basic_json parse(const CharPT s,
|
static basic_json parse(const CharPT s,
|
||||||
const parser_callback_t cb = nullptr)
|
const parser_callback_t cb = nullptr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -5942,7 +5942,7 @@ class basic_json
|
||||||
template<typename CharPT, typename std::enable_if<
|
template<typename CharPT, typename std::enable_if<
|
||||||
std::is_pointer<CharPT>::value and
|
std::is_pointer<CharPT>::value and
|
||||||
std::is_integral<typename std::remove_pointer<CharPT>::type>::value and
|
std::is_integral<typename std::remove_pointer<CharPT>::type>::value and
|
||||||
sizeof(std::remove_pointer<CharPT>) == 1, int>::type = 0>
|
sizeof(typename std::remove_pointer<CharPT>::type) == 1, int>::type = 0>
|
||||||
static basic_json parse(const CharPT s,
|
static basic_json parse(const CharPT s,
|
||||||
const parser_callback_t cb = nullptr)
|
const parser_callback_t cb = nullptr)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue