From 06e19d817e6f480c37a2dca556d1f293c975fc9d Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Tue, 21 Sep 2021 21:28:02 +0000 Subject: [PATCH] crimson/common: assert_moveable() doesn't depend on 3rd party's always_false<>. Signed-off-by: Radoslaw Zarzynski --- src/crimson/common/utility.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/crimson/common/utility.h b/src/crimson/common/utility.h index 42c199a959d..6fc50bb1c1a 100644 --- a/src/crimson/common/utility.h +++ b/src/crimson/common/utility.h @@ -5,12 +5,16 @@ #include +namespace _impl { + template struct always_false : std::false_type {}; +}; + template void assert_moveable(T& t) { // It's fine } template void assert_moveable(const T& t) { - static_assert(always_false::value, "unable to move-out from T"); + static_assert(_impl::always_false::value, "unable to move-out from T"); } -- 2.39.5