build: fix building on macOS 10.14.6, 10.15.7 and 11.7 (#6590)

This commit is contained in:
Cœur 2024-03-10 00:27:20 +08:00 committed by GitHub
parent 6a212e7e8e
commit 6909ec0bad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -14,7 +14,9 @@ struct tr_block_info
public:
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
{

View File

@ -180,9 +180,9 @@ public:
tr_variant& operator=(tr_variant&& that) noexcept = default;
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