build: fix building on macOS 10.14.6, 10.15.7 and 11.7 (#6590)
This commit is contained in:
parent
6a212e7e8e
commit
6909ec0bad
|
@ -14,7 +14,9 @@ struct tr_block_info
|
||||||
public:
|
public:
|
||||||
static auto constexpr BlockSize = uint32_t{ 1024U * 16U };
|
static auto constexpr BlockSize = uint32_t{ 1024U * 16U };
|
||||||
|
|
||||||
tr_block_info() noexcept = default;
|
tr_block_info() noexcept
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
tr_block_info(uint64_t const total_size_in, uint32_t const piece_size_in) noexcept
|
tr_block_info(uint64_t const total_size_in, uint32_t const piece_size_in) noexcept
|
||||||
{
|
{
|
||||||
|
|
|
@ -180,9 +180,9 @@ public:
|
||||||
tr_variant& operator=(tr_variant&& that) noexcept = default;
|
tr_variant& operator=(tr_variant&& that) noexcept = default;
|
||||||
|
|
||||||
template<typename Val>
|
template<typename Val>
|
||||||
tr_variant(Val value)
|
tr_variant(Val&& value)
|
||||||
{
|
{
|
||||||
*this = std::move(value);
|
*this = std::forward<Val>(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] static auto make_map(size_t const n_reserve = 0U) noexcept
|
[[nodiscard]] static auto make_map(size_t const n_reserve = 0U) noexcept
|
||||||
|
|
Loading…
Reference in New Issue