Move boost/core/static_assert.hpp to boost/core/detail

This commit is contained in:
Peter Dimov
2025-10-24 02:57:49 +03:00
parent b700f98b4e
commit 67aaac82d8
10 changed files with 12 additions and 12 deletions

View File

@@ -15,7 +15,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/core/static_assert.hpp>
#include <boost/core/detail/static_assert.hpp>
#include <boost/config.hpp>
#include <boost/cstdint.hpp>
#include <limits>

View File

@@ -20,7 +20,7 @@
#if defined(BOOST_CORE_USE_GENERIC_CMATH) || (!defined(_MSC_VER) && !defined(FP_SUBNORMAL))
#include <boost/core/static_assert.hpp>
#include <boost/core/detail/static_assert.hpp>
#include <boost/cstdint.hpp>
#include <limits>
#include <cstring>

View File

@@ -1,5 +1,5 @@
#ifndef BOOST_CORE_STATIC_ASSERT_HPP_INCLUDED
#define BOOST_CORE_STATIC_ASSERT_HPP_INCLUDED
#ifndef BOOST_CORE_DETAIL_STATIC_ASSERT_HPP_INCLUDED
#define BOOST_CORE_DETAIL_STATIC_ASSERT_HPP_INCLUDED
// Copyright 2025 Peter Dimov
// Distributed under the Boost Software License, Version 1.0.
@@ -39,4 +39,4 @@ template<std::size_t> struct static_assert_test
#endif
#endif // #ifndef BOOST_CORE_STATIC_ASSERT_HPP_INCLUDED
#endif // #ifndef BOOST_CORE_DETAIL_STATIC_ASSERT_HPP_INCLUDED

View File

@@ -2,7 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/core/static_assert.hpp>
#include <boost/core/detail/static_assert.hpp>
BOOST_CORE_STATIC_ASSERT( sizeof(char[1]) != 1 );

View File

@@ -2,7 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/core/static_assert.hpp>
#include <boost/core/detail/static_assert.hpp>
struct X
{

View File

@@ -2,7 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/core/static_assert.hpp>
#include <boost/core/detail/static_assert.hpp>
int main()
{

View File

@@ -2,7 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/core/static_assert.hpp>
#include <boost/core/detail/static_assert.hpp>
template<int C> struct X
{

View File

@@ -2,7 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/core/static_assert.hpp>
#include <boost/core/detail/static_assert.hpp>
BOOST_CORE_STATIC_ASSERT( sizeof(char[1]) == 1 );

View File

@@ -2,7 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/core/static_assert.hpp>
#include <boost/core/detail/static_assert.hpp>
template<int A, int B> struct plus
{

View File

@@ -2,7 +2,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/core/static_assert.hpp>
#include <boost/core/detail/static_assert.hpp>
template<int C> struct X
{