1
1
#include " test/types/json/json_helpers.hpp"
2
2
3
+ #include " fly/traits/concepts.hpp"
3
4
#include " fly/types/json/json.hpp"
4
5
5
6
#include " catch2/catch_test_macros.hpp"
@@ -181,7 +182,7 @@ CATCH_JSON_TEST_CASE("JsonAccessors")
181
182
CATCH_SECTION (" Change the size of a JSON instance" )
182
183
{
183
184
constexpr bool is_string_or_array =
184
- fly::any_same_v <json_type, fly::json_string_type, fly::json_array_type>;
185
+ fly::SameAsAny <json_type, fly::json_string_type, fly::json_array_type>;
185
186
186
187
if constexpr (is_string_or_array)
187
188
{
@@ -205,7 +206,7 @@ CATCH_JSON_TEST_CASE("JsonAccessors")
205
206
CATCH_SECTION (" Check the capacity of a JSON instance" )
206
207
{
207
208
constexpr bool is_string_or_array =
208
- fly::any_same_v <json_type, fly::json_string_type, fly::json_array_type>;
209
+ fly::SameAsAny <json_type, fly::json_string_type, fly::json_array_type>;
209
210
210
211
if constexpr (std::is_same_v<json_type, fly::json_null_type>)
211
212
{
@@ -234,7 +235,7 @@ CATCH_JSON_TEST_CASE("JsonAccessors")
234
235
CATCH_SECTION (" Change the capacity of a JSON instance" )
235
236
{
236
237
constexpr bool is_string_or_array =
237
- fly::any_same_v <json_type, fly::json_string_type, fly::json_array_type>;
238
+ fly::SameAsAny <json_type, fly::json_string_type, fly::json_array_type>;
238
239
239
240
if constexpr (is_string_or_array)
240
241
{
0 commit comments