mirror of
https://github.com/nlohmann/json.git
synced 2024-11-24 06:29:03 +08:00
🚧 removed decay (#448)
This commit is contained in:
parent
7a4a16a7db
commit
716485a965
@ -524,8 +524,7 @@ struct has_to_json
|
||||
/////////////
|
||||
|
||||
template<typename BasicJsonType, typename T, enable_if_t<
|
||||
std::is_same<typename std::decay<T>::type,
|
||||
typename BasicJsonType::boolean_t>::value, int> = 0>
|
||||
std::is_same<T, typename BasicJsonType::boolean_t>::value, int> = 0>
|
||||
void to_json(BasicJsonType& j, T b) noexcept
|
||||
{
|
||||
external_constructor<value_t::boolean>::construct(j, b);
|
||||
|
@ -524,8 +524,7 @@ struct has_to_json
|
||||
/////////////
|
||||
|
||||
template<typename BasicJsonType, typename T, enable_if_t<
|
||||
std::is_same<typename std::decay<T>::type,
|
||||
typename BasicJsonType::boolean_t>::value, int> = 0>
|
||||
std::is_same<T, typename BasicJsonType::boolean_t>::value, int> = 0>
|
||||
void to_json(BasicJsonType& j, T b) noexcept
|
||||
{
|
||||
external_constructor<value_t::boolean>::construct(j, b);
|
||||
|
Loading…
Reference in New Issue
Block a user