From da370a6a1af703d96f72aa7e58fc562fe36a2670 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Mon, 27 Feb 2017 12:20:37 +0000 Subject: [PATCH] Avoid Visual C++ warning C4127 --- include/boost/unordered/detail/implementation.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/implementation.hpp b/include/boost/unordered/detail/implementation.hpp index 871ad5a7..a7a2d186 100644 --- a/include/boost/unordered/detail/implementation.hpp +++ b/include/boost/unordered/detail/implementation.hpp @@ -3499,7 +3499,7 @@ template struct node_algo { node_pointer n = next_node(prev); std::size_t hash = n->hash_; - while (true) { + for (;;) { node_pointer next = next_node(n); if (!next || next->hash_ != hash) { return n;