Fix unreachable code warning with MSVC

fixes #1582
closes #2035
This commit is contained in:
Richard Hodges
2020-08-28 13:26:23 +02:00
parent b07edea9d7
commit d04ff199bb
2 changed files with 2 additions and 1 deletions
@@ -52,7 +52,7 @@ public:
#if defined(_MSC_VER) && ! defined(__clang__)
# define BOOST_BEAST_UNREACHABLE() __assume(false)
# define BOOST_BEAST_UNREACHABLE_RETURN(v) __assume(false)
# define BOOST_BEAST_UNREACHABLE_RETURN(v) return v
#else
# define BOOST_BEAST_UNREACHABLE() __builtin_unreachable()
# define BOOST_BEAST_UNREACHABLE_RETURN(v) \