From bce7b59d29eb63b06fd2b6acaa6053ede7e439dd Mon Sep 17 00:00:00 2001 From: Gabriel Matte Date: Fri, 4 Nov 2022 16:55:12 -0300 Subject: [PATCH] Remove "not" operator and change for the "!" operator --- include/boost/sort/common/spinlock.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/sort/common/spinlock.hpp b/include/boost/sort/common/spinlock.hpp index 5944e21..5287ccb 100644 --- a/include/boost/sort/common/spinlock.hpp +++ b/include/boost/sort/common/spinlock.hpp @@ -70,7 +70,7 @@ class spinlock_t //------------------------------------------------------------------------- bool try_lock ( ) noexcept { - return not af.test_and_set (std::memory_order_acquire); + return !af.test_and_set (std::memory_order_acquire); }; // //-------------------------------------------------------------------------