Skip to content

Commit 4a2f08a

Browse files
committed
Merge branch 'release/M20221031'
2 parents 8b574b5 + 2105c53 commit 4a2f08a

File tree

998 files changed

+182232
-111
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

998 files changed

+182232
-111
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Boost Software License - Version 1.0 - August 17th, 2003
2+
3+
Permission is hereby granted, free of charge, to any person or organization
4+
obtaining a copy of the software and accompanying documentation covered by
5+
this license (the "Software") to use, reproduce, display, distribute,
6+
execute, and transmit the Software, and to prepare derivative works of the
7+
Software, and to permit third-parties to whom the Software is furnished to
8+
do so, all subject to the following:
9+
10+
The copyright notices in the Software and this entire statement, including
11+
the above license grant, this restriction and the following disclaimer,
12+
must be included in all copies of the Software, in whole or in part, and
13+
all derivative works of the Software, unless such copies or derivative
14+
works are solely in the form of machine-executable object code generated by
15+
a source language processor.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
20+
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
21+
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
22+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23+
DEALINGS IN THE SOFTWARE.
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
//
2+
// boost/assert.hpp - BOOST_ASSERT(expr)
3+
// BOOST_ASSERT_MSG(expr, msg)
4+
// BOOST_VERIFY(expr)
5+
// BOOST_VERIFY_MSG(expr, msg)
6+
// BOOST_ASSERT_IS_VOID
7+
//
8+
// Copyright (c) 2001, 2002 Peter Dimov and Multi Media Ltd.
9+
// Copyright (c) 2007, 2014 Peter Dimov
10+
// Copyright (c) Beman Dawes 2011
11+
// Copyright (c) 2015 Ion Gaztanaga
12+
//
13+
// Distributed under the Boost Software License, Version 1.0.
14+
// See accompanying file LICENSE_1_0.txt or copy at
15+
// http://www.boost.org/LICENSE_1_0.txt
16+
//
17+
// Note: There are no include guards. This is intentional.
18+
//
19+
// See http://www.boost.org/libs/assert/assert.html for documentation.
20+
//
21+
22+
//
23+
// Stop inspect complaining about use of 'assert':
24+
//
25+
// boostinspect:naassert_macro
26+
//
27+
28+
//
29+
// BOOST_ASSERT, BOOST_ASSERT_MSG, BOOST_ASSERT_IS_VOID
30+
//
31+
32+
#undef BOOST_ASSERT
33+
#undef BOOST_ASSERT_MSG
34+
#undef BOOST_ASSERT_IS_VOID
35+
36+
#if defined(BOOST_DISABLE_ASSERTS) || ( defined(BOOST_ENABLE_ASSERT_DEBUG_HANDLER) && defined(NDEBUG) )
37+
38+
# define BOOST_ASSERT(expr) ((void)0)
39+
# define BOOST_ASSERT_MSG(expr, msg) ((void)0)
40+
# define BOOST_ASSERT_IS_VOID
41+
42+
#elif defined(BOOST_ENABLE_ASSERT_HANDLER) || ( defined(BOOST_ENABLE_ASSERT_DEBUG_HANDLER) && !defined(NDEBUG) )
43+
44+
#include <boost/config.hpp> // for BOOST_LIKELY
45+
#include <boost/current_function.hpp>
46+
47+
namespace boost
48+
{
49+
void assertion_failed(char const * expr, char const * function, char const * file, long line); // user defined
50+
void assertion_failed_msg(char const * expr, char const * msg, char const * function, char const * file, long line); // user defined
51+
} // namespace boost
52+
53+
#define BOOST_ASSERT(expr) (BOOST_LIKELY(!!(expr))? ((void)0): ::boost::assertion_failed(#expr, BOOST_CURRENT_FUNCTION, __FILE__, __LINE__))
54+
#define BOOST_ASSERT_MSG(expr, msg) (BOOST_LIKELY(!!(expr))? ((void)0): ::boost::assertion_failed_msg(#expr, msg, BOOST_CURRENT_FUNCTION, __FILE__, __LINE__))
55+
56+
#else
57+
58+
# include <assert.h> // .h to support old libraries w/o <cassert> - effect is the same
59+
60+
# define BOOST_ASSERT(expr) assert(expr)
61+
# define BOOST_ASSERT_MSG(expr, msg) assert((expr)&&(msg))
62+
#if defined(NDEBUG)
63+
# define BOOST_ASSERT_IS_VOID
64+
#endif
65+
66+
#endif
67+
68+
//
69+
// BOOST_VERIFY, BOOST_VERIFY_MSG
70+
//
71+
72+
#undef BOOST_VERIFY
73+
#undef BOOST_VERIFY_MSG
74+
75+
#if defined(BOOST_DISABLE_ASSERTS) || ( !defined(BOOST_ENABLE_ASSERT_HANDLER) && defined(NDEBUG) )
76+
77+
# define BOOST_VERIFY(expr) ((void)(expr))
78+
# define BOOST_VERIFY_MSG(expr, msg) ((void)(expr))
79+
80+
#else
81+
82+
# define BOOST_VERIFY(expr) BOOST_ASSERT(expr)
83+
# define BOOST_VERIFY_MSG(expr, msg) BOOST_ASSERT_MSG(expr,msg)
84+
85+
#endif
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000.
2+
// Use, modification and distribution are subject to the Boost Software License,
3+
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
4+
// http://www.boost.org/LICENSE_1_0.txt).
5+
//
6+
// See http://www.boost.org/libs/utility for most recent version including documentation.
7+
8+
// See boost/detail/call_traits.hpp
9+
// for full copyright notices.
10+
11+
#ifndef BOOST_CALL_TRAITS_HPP
12+
#define BOOST_CALL_TRAITS_HPP
13+
14+
#ifndef BOOST_CONFIG_HPP
15+
#include <boost/config.hpp>
16+
#endif
17+
18+
#include <boost/detail/call_traits.hpp>
19+
20+
#endif // BOOST_CALL_TRAITS_HPP
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
// Circular buffer library header file.
2+
3+
// Copyright (c) 2003-2008 Jan Gaspar
4+
5+
// Use, modification, and distribution is subject to the Boost Software
6+
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7+
// http://www.boost.org/LICENSE_1_0.txt)
8+
9+
// See www.boost.org/libs/circular_buffer for documentation.
10+
11+
#if !defined(BOOST_CIRCULAR_BUFFER_HPP)
12+
#define BOOST_CIRCULAR_BUFFER_HPP
13+
14+
#if defined(_MSC_VER)
15+
#pragma once
16+
#endif
17+
18+
#include <boost/circular_buffer_fwd.hpp>
19+
#include <boost/detail/workaround.hpp>
20+
#include <boost/static_assert.hpp>
21+
22+
// BOOST_CB_ENABLE_DEBUG: Debug support control.
23+
#if !defined(BOOST_CB_ENABLE_DEBUG)
24+
#define BOOST_CB_ENABLE_DEBUG 0
25+
#endif
26+
27+
// BOOST_CB_ASSERT: Runtime assertion.
28+
#if BOOST_CB_ENABLE_DEBUG
29+
#include <boost/assert.hpp>
30+
#define BOOST_CB_ASSERT(Expr) BOOST_ASSERT(Expr)
31+
#else
32+
#define BOOST_CB_ASSERT(Expr) ((void)0)
33+
#endif
34+
35+
// BOOST_CB_IS_CONVERTIBLE: Check if Iterator::value_type is convertible to Type.
36+
#if BOOST_WORKAROUND(__BORLANDC__, <= 0x0550) || BOOST_WORKAROUND(__MWERKS__, <= 0x2407)
37+
#define BOOST_CB_IS_CONVERTIBLE(Iterator, Type) ((void)0)
38+
#else
39+
#include <boost/detail/iterator.hpp>
40+
#include <boost/type_traits/is_convertible.hpp>
41+
#define BOOST_CB_IS_CONVERTIBLE(Iterator, Type) \
42+
BOOST_STATIC_ASSERT((is_convertible<typename detail::iterator_traits<Iterator>::value_type, Type>::value))
43+
#endif
44+
45+
// BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS:
46+
// Check if the STL provides templated iterator constructors for its containers.
47+
#if defined(BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS)
48+
#define BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS BOOST_STATIC_ASSERT(false);
49+
#else
50+
#define BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS ((void)0);
51+
#endif
52+
53+
#include <boost/circular_buffer/debug.hpp>
54+
#include <boost/circular_buffer/details.hpp>
55+
#include <boost/circular_buffer/base.hpp>
56+
#include <boost/circular_buffer/space_optimized.hpp>
57+
58+
#undef BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS
59+
#undef BOOST_CB_IS_CONVERTIBLE
60+
#undef BOOST_CB_ASSERT
61+
62+
#endif // #if !defined(BOOST_CIRCULAR_BUFFER_HPP)

0 commit comments

Comments
 (0)