Skip to content

Commit 1ed9abe

Browse files
committed
basic_json(const T&
1 parent 3bf7334 commit 1ed9abe

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

include/jsoncons/basic_json.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2440,15 +2440,13 @@ namespace jsoncons {
24402440
construct<object_storage>(ptr, tag);
24412441
}
24422442

2443-
template <typename T,
2444-
typename = typename std::enable_if<!ext_traits::is_basic_json<T>::value>::type>
2443+
template <typename T>
24452444
basic_json(const T& val)
24462445
: basic_json(reflect::json_conv_traits<basic_json,T>::to_json(val, std::allocator<char>()))
24472446
{
24482447
}
24492448

2450-
template <typename T,
2451-
typename = typename std::enable_if<!ext_traits::is_basic_json<T>::value>::type>
2449+
template <typename T>
24522450
basic_json(const T& val, const Allocator& alloc)
24532451
: basic_json(reflect::json_conv_traits<basic_json,T>::to_json(val,alloc))
24542452
{

0 commit comments

Comments
 (0)