mirror of
https://github.com/boostorg/core.git
synced 2025-11-28 21:30:09 +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.
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
// https://www.boost.org/LICENSE_1_0.txt
|
// 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/config.hpp>
|
||||||
#include <boost/cstdint.hpp>
|
#include <boost/cstdint.hpp>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
#if defined(BOOST_CORE_USE_GENERIC_CMATH) || (!defined(_MSC_VER) && !defined(FP_SUBNORMAL))
|
#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 <boost/cstdint.hpp>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef BOOST_CORE_STATIC_ASSERT_HPP_INCLUDED
|
#ifndef BOOST_CORE_DETAIL_STATIC_ASSERT_HPP_INCLUDED
|
||||||
#define BOOST_CORE_STATIC_ASSERT_HPP_INCLUDED
|
#define BOOST_CORE_DETAIL_STATIC_ASSERT_HPP_INCLUDED
|
||||||
|
|
||||||
// Copyright 2025 Peter Dimov
|
// Copyright 2025 Peter Dimov
|
||||||
// Distributed under the Boost Software License, Version 1.0.
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
@@ -39,4 +39,4 @@ template<std::size_t> struct static_assert_test
|
|||||||
|
|
||||||
#endif
|
#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.
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
// https://www.boost.org/LICENSE_1_0.txt
|
// 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 );
|
BOOST_CORE_STATIC_ASSERT( sizeof(char[1]) != 1 );
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// Distributed under the Boost Software License, Version 1.0.
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
// https://www.boost.org/LICENSE_1_0.txt
|
// https://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
#include <boost/core/static_assert.hpp>
|
#include <boost/core/detail/static_assert.hpp>
|
||||||
|
|
||||||
struct X
|
struct X
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// Distributed under the Boost Software License, Version 1.0.
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
// https://www.boost.org/LICENSE_1_0.txt
|
// https://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
#include <boost/core/static_assert.hpp>
|
#include <boost/core/detail/static_assert.hpp>
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// Distributed under the Boost Software License, Version 1.0.
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
// https://www.boost.org/LICENSE_1_0.txt
|
// 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
|
template<int C> struct X
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// Distributed under the Boost Software License, Version 1.0.
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
// https://www.boost.org/LICENSE_1_0.txt
|
// 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 );
|
BOOST_CORE_STATIC_ASSERT( sizeof(char[1]) == 1 );
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// Distributed under the Boost Software License, Version 1.0.
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
// https://www.boost.org/LICENSE_1_0.txt
|
// 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
|
template<int A, int B> struct plus
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// Distributed under the Boost Software License, Version 1.0.
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
// https://www.boost.org/LICENSE_1_0.txt
|
// 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
|
template<int C> struct X
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user