Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions include/boost/json/array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class array
@li **(5)** the array is filled with values in the range
`[first, last)`, preserving order.

@li **(6)** the array is filled with copies of the values in `init,
@li **(6)** the array is filled with copies of the values in `init`,
preserving order.

@li **(7)**, **(8)** the array is filled with copies of the elements of
Expand Down Expand Up @@ -237,7 +237,6 @@ class array

@see @ref pilfer,
[Valueless Variants Considered Harmful](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0308r0.html).
//
@{
*/
array() noexcept
Expand Down Expand Up @@ -318,14 +317,6 @@ class array
array const& other,
storage_ptr sp);

/// Overload
array(pilfered<array> other) noexcept
: sp_(std::move(other.get().sp_))
, t_(detail::exchange(
other.get().t_, &empty_))
{
}

/// Overload
array(array&& other) noexcept
: sp_(other.sp_)
Expand All @@ -339,6 +330,14 @@ class array
array(
array&& other,
storage_ptr sp);

/// Overload
array(pilfered<array> other) noexcept
: sp_(std::move(other.get().sp_))
, t_(detail::exchange(
other.get().t_, &empty_))
{
}
/// @}

/** Assignment operators.
Expand Down
Loading