mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
warning C4814
This commit is contained in:
parent
dbe6d6d3c6
commit
0b88505cb1
@ -79,7 +79,7 @@ public:
|
||||
master_allocs_.emplace(std::move(alc));
|
||||
}
|
||||
|
||||
constexpr auto try_replenish(alloc_policy&, std::size_t) noexcept {}
|
||||
IPC_CONSTEXPR_ auto try_replenish(alloc_policy&, std::size_t) noexcept {}
|
||||
};
|
||||
|
||||
template <typename AllocP>
|
||||
@ -120,7 +120,7 @@ public:
|
||||
}
|
||||
|
||||
template <typename A = AllocP>
|
||||
constexpr auto try_replenish(alloc_policy & /*alc*/, std::size_t /*size*/) const noexcept
|
||||
IPC_CONSTEXPR_ auto try_replenish(alloc_policy & /*alc*/, std::size_t /*size*/) noexcept
|
||||
-> ipc::require<(!detail::has_take<A>::value || !has_remain<A>::value) && !has_empty<A>::value> {
|
||||
// Do Nothing.
|
||||
}
|
||||
@ -131,10 +131,10 @@ class empty_recycler {
|
||||
public:
|
||||
using alloc_policy = AllocP;
|
||||
|
||||
constexpr void swap(empty_recycler&) noexcept {}
|
||||
constexpr void try_recover(alloc_policy&) noexcept {}
|
||||
constexpr auto try_replenish(alloc_policy&, std::size_t) noexcept {}
|
||||
constexpr void collect(alloc_policy&&) noexcept {}
|
||||
IPC_CONSTEXPR_ void swap(empty_recycler&) noexcept {}
|
||||
IPC_CONSTEXPR_ void try_recover(alloc_policy&) noexcept {}
|
||||
IPC_CONSTEXPR_ auto try_replenish(alloc_policy&, std::size_t) noexcept {}
|
||||
IPC_CONSTEXPR_ void collect(alloc_policy&&) noexcept {}
|
||||
};
|
||||
|
||||
template <typename AllocP,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user