From 74c2ae627a8694ce6c3922cbd7fce8b7db998814 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Fri, 7 Oct 2022 11:34:13 +0200 Subject: [PATCH] avoided VS constant conditional expression warning --- include/boost/unordered/detail/foa.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index 39da1f26..c4024ee5 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -976,7 +976,8 @@ public: std::is_nothrow_move_assignable::value&& std::is_nothrow_move_assignable::value) { - static constexpr auto pocma= + /* not constexpr to avoid constant conditional expression warnings in VS */ + const auto pocma= alloc_traits::propagate_on_container_move_assignment::value; /* Avoid using nested lambdas with a `this` capture as it seems to trigger