mirror of
https://github.com/boostorg/core.git
synced 2025-11-28 13:29:19 +01:00
Move boost/core/static_assert.hpp to boost/core/detail
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user