From 0b88505cb1d3987f2ef04fd7137aaa5566700ac8 Mon Sep 17 00:00:00 2001 From: zhangyi Date: Thu, 24 Oct 2019 12:32:58 +0800 Subject: [PATCH] warning C4814 --- src/memory/wrapper.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/memory/wrapper.h b/src/memory/wrapper.h index 353fcc4..65fc858 100755 --- a/src/memory/wrapper.h +++ b/src/memory/wrapper.h @@ -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 @@ -120,7 +120,7 @@ public: } template - 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::value || !has_remain::value) && !has_empty::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