From 0890785fec250b55c2d6521615968113477012ce Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sat, 7 Jan 2023 03:52:46 +0300 Subject: [PATCH] Added #pragma once in swap.hpp. --- include/boost/core/swap.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/boost/core/swap.hpp b/include/boost/core/swap.hpp index 9952779..7add2fb 100644 --- a/include/boost/core/swap.hpp +++ b/include/boost/core/swap.hpp @@ -30,6 +30,10 @@ #endif #include // for std::size_t +#ifdef BOOST_HAS_PRAGMA_ONCE +#pragma once +#endif + #if defined(BOOST_GCC) && (BOOST_GCC < 40700) // gcc 4.6 ICEs on noexcept specifications below #define BOOST_CORE_SWAP_NOEXCEPT_IF(x) @@ -82,4 +86,4 @@ namespace boost #undef BOOST_CORE_SWAP_NOEXCEPT_IF -#endif +#endif // BOOST_CORE_SWAP_HPP