Skip to content

Commit 43f4065

Browse files
committed
Fix last case of value_type in conversion to object_type
1 parent cbb4e6d commit 43f4065

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ concept object_type = std::is_same_v<T, std::nullptr_t> || std::is_same_v<T, boo
3030

3131

3232
template<value_type V>
33-
using object_type_from_value_type = std::conditional_t<V == Null, std::nullptr_t, std::conditional_t<V == Bool, bool, std::conditional_t<V == Int, long long int, std::conditional_t<V == Float, long double, std::conditional_t<V == String, std::string, std::conditional_t<V == Vector, std::vector<object>, std::map<std::string, object>>>>>>>;
33+
using object_type_from_value_type = std::conditional_t<V == Null, std::nullptr_t, std::conditional_t<V == Bool, bool, std::conditional_t<V == Int, long long int, std::conditional_t<V == Float, long double, std::conditional_t<V == String, std::string, std::conditional_t<V == Vector, std::vector<object>, std::conditional_t<V == Map, std::map<std::string, object>, std::nullptr_t>>>>>>>;
3434

3535
template<object_type T>
3636
value_type value_type_from_object_type();

0 commit comments

Comments
 (0)