From 34ef5c45be2fc59fe7aa9233b8a1b27ac1bee391 Mon Sep 17 00:00:00 2001 From: Gennaro Prota Date: Wed, 22 Oct 2025 18:59:52 +0200 Subject: [PATCH] Remove an unused dependency on Boost.StaticAssert This closes issue #73. --- CMakeLists.txt | 3 +-- include/boost/static_string/config.hpp | 7 ------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a95039..6bf922d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,7 @@ if (BOOST_STATIC_STRING_FIND_PACKAGE_BOOST) find_package(Boost 1.78.0 REQUIRED COMPONENTS container) elseif (BOOST_STATIC_STRING_IS_ROOT) set(BOOST_STATIC_STRING_UNIT_TEST_LIBRARIES core) - set(BOOST_INCLUDE_LIBRARIES static_string assert container_hash static_assert throw_exception utility ${BOOST_STATIC_STRING_UNIT_TEST_LIBRARIES}) + set(BOOST_INCLUDE_LIBRARIES static_string assert container_hash throw_exception utility ${BOOST_STATIC_STRING_UNIT_TEST_LIBRARIES}) set(BOOST_EXCLUDE_LIBRARIES static_string) set(CMAKE_FOLDER Dependencies) add_subdirectory(../.. Dependencies/boost EXCLUDE_FROM_ALL) @@ -90,7 +90,6 @@ else () Boost::assert Boost::container_hash Boost::core - Boost::static_assert Boost::throw_exception Boost::utility ) diff --git a/include/boost/static_string/config.hpp b/include/boost/static_string/config.hpp index a0f0095..0c7353e 100644 --- a/include/boost/static_string/config.hpp +++ b/include/boost/static_string/config.hpp @@ -139,9 +139,6 @@ #ifndef BOOST_STATIC_STRING_THROW #define BOOST_STATIC_STRING_THROW(ex) BOOST_THROW_EXCEPTION(ex) #endif -#ifndef BOOST_STATIC_STRING_STATIC_ASSERT -#define BOOST_STATIC_STRING_STATIC_ASSERT(cond, msg) BOOST_STATIC_ASSERT_MSG(cond, msg) -#endif #ifndef BOOST_STATIC_STRING_ASSERT #define BOOST_STATIC_STRING_ASSERT(cond) BOOST_ASSERT(cond) #endif @@ -149,9 +146,6 @@ #ifndef BOOST_STATIC_STRING_THROW #define BOOST_STATIC_STRING_THROW(ex) throw ex #endif -#ifndef BOOST_STATIC_STRING_STATIC_ASSERT -#define BOOST_STATIC_STRING_STATIC_ASSERT(cond, msg) static_assert(cond, msg) -#endif #ifndef BOOST_STATIC_STRING_ASSERT #define BOOST_STATIC_STRING_ASSERT(cond) assert(cond) #endif @@ -161,7 +155,6 @@ #include #include #include -#include #include #include #include