From: Radoslaw Zarzynski Date: Tue, 21 Sep 2021 21:28:02 +0000 (+0000) Subject: crimson/common: assert_moveable() doesn't depend on 3rd party's always_false<>. X-Git-Tag: v17.1.0~834^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=06e19d817e6f480c37a2dca556d1f293c975fc9d;p=ceph.git crimson/common: assert_moveable() doesn't depend on 3rd party's always_false<>. Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/crimson/common/utility.h b/src/crimson/common/utility.h index 42c199a959df..6fc50bb1c1a1 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"); }