Skip to content

Commit

Permalink
Fix last case of value_type in conversion to object_type
Browse files Browse the repository at this point in the history
  • Loading branch information
tokox committed Mar 30, 2024
1 parent cbb4e6d commit 43f4065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ concept object_type = std::is_same_v<T, std::nullptr_t> || std::is_same_v<T, boo


template<value_type V>
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>>>>>>>;
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>>>>>>>;

template<object_type T>
value_type value_type_from_object_type();
Expand Down

0 comments on commit 43f4065

Please sign in to comment.