Skip to content

Commit 747bde3

Browse files
committed
fix conversion into tuple with const elements
1 parent 00ba384 commit 747bde3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

include/boost/json/detail/value_to.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,9 +394,10 @@ try_make_tuple_like(
394394
{
395395
error_code ec;
396396
auto items = std::make_tuple(
397-
try_make_tuple_elem<tuple_element_t<Is, T>>(
398-
arr[Is], ctx, ec)
399-
...);
397+
try_make_tuple_elem<
398+
typename std::decay<tuple_element_t<Is, T>>::type >(
399+
arr[Is], ctx, ec)
400+
...);
400401
if( ec.failed() )
401402
return {boost::system::in_place_error, ec};
402403

0 commit comments

Comments
 (0)