From 5bb304bcfae03a38d2b48f748963c5dbf2704152 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Sun, 10 Nov 2024 11:47:22 +0100 Subject: [PATCH] Add `BOOST_FALLTHROUGH` for MSVC MSVC supports this attribute for C++17 and higher since VS 2017 --- include/boost/config/compiler/visualc.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/boost/config/compiler/visualc.hpp b/include/boost/config/compiler/visualc.hpp index ce0fc15e3..16098b1f5 100644 --- a/include/boost/config/compiler/visualc.hpp +++ b/include/boost/config/compiler/visualc.hpp @@ -310,6 +310,7 @@ #if BOOST_CXX_VERSION >= 201703L # define BOOST_ATTRIBUTE_UNUSED [[maybe_unused]] +# define BOOST_FALLTHROUGH [[fallthrough]] #endif #ifndef BOOST_COMPILER