Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Mar 15, 2024
1 parent 7aebc26 commit 83671e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/common/value.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class basic_value
template <
typename fixed_array_t,
std::enable_if_t<_utils::is_fixed_array<fixed_array_t>, bool> = true>
basic_value(fixed_array_t&& arr)
: basic_value(basic_array<string_t>(std::forward<fixed_array_t>(arr)))
basic_value(fixed_array_t arr)
: basic_value(basic_array<string_t>(std::move(arr)))
{
}

Expand Down
2 changes: 1 addition & 1 deletion test/serializing_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ bool jsonizing()
}

std::array<int, 10> stdarr { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
json::value jarr = json::array(stdarr);
json::value jarr = stdarr;
std::array<int, 10> new_std_arr;
if (jarr.is<std::array<int, 10>>()) {
new_std_arr = (std::array<int, 10>)jarr;
Expand Down

0 comments on commit 83671e5

Please sign in to comment.