-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
975 changed files
with
180,299 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
// | ||
// boost/assert.hpp - BOOST_ASSERT(expr) | ||
// BOOST_ASSERT_MSG(expr, msg) | ||
// BOOST_VERIFY(expr) | ||
// BOOST_VERIFY_MSG(expr, msg) | ||
// BOOST_ASSERT_IS_VOID | ||
// | ||
// Copyright (c) 2001, 2002 Peter Dimov and Multi Media Ltd. | ||
// Copyright (c) 2007, 2014 Peter Dimov | ||
// Copyright (c) Beman Dawes 2011 | ||
// Copyright (c) 2015 Ion Gaztanaga | ||
// | ||
// Distributed under the Boost Software License, Version 1.0. | ||
// See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt | ||
// | ||
// Note: There are no include guards. This is intentional. | ||
// | ||
// See http://www.boost.org/libs/assert/assert.html for documentation. | ||
// | ||
|
||
// | ||
// Stop inspect complaining about use of 'assert': | ||
// | ||
// boostinspect:naassert_macro | ||
// | ||
|
||
// | ||
// BOOST_ASSERT, BOOST_ASSERT_MSG, BOOST_ASSERT_IS_VOID | ||
// | ||
|
||
#undef BOOST_ASSERT | ||
#undef BOOST_ASSERT_MSG | ||
#undef BOOST_ASSERT_IS_VOID | ||
|
||
#if defined(BOOST_DISABLE_ASSERTS) || ( defined(BOOST_ENABLE_ASSERT_DEBUG_HANDLER) && defined(NDEBUG) ) | ||
|
||
# define BOOST_ASSERT(expr) ((void)0) | ||
# define BOOST_ASSERT_MSG(expr, msg) ((void)0) | ||
# define BOOST_ASSERT_IS_VOID | ||
|
||
#elif defined(BOOST_ENABLE_ASSERT_HANDLER) || ( defined(BOOST_ENABLE_ASSERT_DEBUG_HANDLER) && !defined(NDEBUG) ) | ||
|
||
#include <boost/config.hpp> // for BOOST_LIKELY | ||
#include <boost/current_function.hpp> | ||
|
||
namespace boost | ||
{ | ||
void assertion_failed(char const * expr, char const * function, char const * file, long line); // user defined | ||
void assertion_failed_msg(char const * expr, char const * msg, char const * function, char const * file, long line); // user defined | ||
} // namespace boost | ||
|
||
#define BOOST_ASSERT(expr) (BOOST_LIKELY(!!(expr))? ((void)0): ::boost::assertion_failed(#expr, BOOST_CURRENT_FUNCTION, __FILE__, __LINE__)) | ||
#define BOOST_ASSERT_MSG(expr, msg) (BOOST_LIKELY(!!(expr))? ((void)0): ::boost::assertion_failed_msg(#expr, msg, BOOST_CURRENT_FUNCTION, __FILE__, __LINE__)) | ||
|
||
#else | ||
|
||
# include <assert.h> // .h to support old libraries w/o <cassert> - effect is the same | ||
|
||
# define BOOST_ASSERT(expr) assert(expr) | ||
# define BOOST_ASSERT_MSG(expr, msg) assert((expr)&&(msg)) | ||
#if defined(NDEBUG) | ||
# define BOOST_ASSERT_IS_VOID | ||
#endif | ||
|
||
#endif | ||
|
||
// | ||
// BOOST_VERIFY, BOOST_VERIFY_MSG | ||
// | ||
|
||
#undef BOOST_VERIFY | ||
#undef BOOST_VERIFY_MSG | ||
|
||
#if defined(BOOST_DISABLE_ASSERTS) || ( !defined(BOOST_ENABLE_ASSERT_HANDLER) && defined(NDEBUG) ) | ||
|
||
# define BOOST_VERIFY(expr) ((void)(expr)) | ||
# define BOOST_VERIFY_MSG(expr, msg) ((void)(expr)) | ||
|
||
#else | ||
|
||
# define BOOST_VERIFY(expr) BOOST_ASSERT(expr) | ||
# define BOOST_VERIFY_MSG(expr, msg) BOOST_ASSERT_MSG(expr,msg) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000. | ||
// Use, modification and distribution are subject to the Boost Software License, | ||
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt). | ||
// | ||
// See http://www.boost.org/libs/utility for most recent version including documentation. | ||
|
||
// See boost/detail/call_traits.hpp | ||
// for full copyright notices. | ||
|
||
#ifndef BOOST_CALL_TRAITS_HPP | ||
#define BOOST_CALL_TRAITS_HPP | ||
|
||
#ifndef BOOST_CONFIG_HPP | ||
#include <boost/config.hpp> | ||
#endif | ||
|
||
#include <boost/detail/call_traits.hpp> | ||
|
||
#endif // BOOST_CALL_TRAITS_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// Circular buffer library header file. | ||
|
||
// Copyright (c) 2003-2008 Jan Gaspar | ||
|
||
// Use, modification, and distribution is subject to the Boost Software | ||
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// See www.boost.org/libs/circular_buffer for documentation. | ||
|
||
#if !defined(BOOST_CIRCULAR_BUFFER_HPP) | ||
#define BOOST_CIRCULAR_BUFFER_HPP | ||
|
||
#if defined(_MSC_VER) | ||
#pragma once | ||
#endif | ||
|
||
#include <boost/circular_buffer_fwd.hpp> | ||
#include <boost/detail/workaround.hpp> | ||
#include <boost/static_assert.hpp> | ||
|
||
// BOOST_CB_ENABLE_DEBUG: Debug support control. | ||
#if !defined(BOOST_CB_ENABLE_DEBUG) | ||
#define BOOST_CB_ENABLE_DEBUG 0 | ||
#endif | ||
|
||
// BOOST_CB_ASSERT: Runtime assertion. | ||
#if BOOST_CB_ENABLE_DEBUG | ||
#include <boost/assert.hpp> | ||
#define BOOST_CB_ASSERT(Expr) BOOST_ASSERT(Expr) | ||
#else | ||
#define BOOST_CB_ASSERT(Expr) ((void)0) | ||
#endif | ||
|
||
// BOOST_CB_IS_CONVERTIBLE: Check if Iterator::value_type is convertible to Type. | ||
#if BOOST_WORKAROUND(__BORLANDC__, <= 0x0550) || BOOST_WORKAROUND(__MWERKS__, <= 0x2407) | ||
#define BOOST_CB_IS_CONVERTIBLE(Iterator, Type) ((void)0) | ||
#else | ||
#include <boost/detail/iterator.hpp> | ||
#include <boost/type_traits/is_convertible.hpp> | ||
#define BOOST_CB_IS_CONVERTIBLE(Iterator, Type) \ | ||
BOOST_STATIC_ASSERT((is_convertible<typename detail::iterator_traits<Iterator>::value_type, Type>::value)) | ||
#endif | ||
|
||
// BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS: | ||
// Check if the STL provides templated iterator constructors for its containers. | ||
#if defined(BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS) | ||
#define BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS BOOST_STATIC_ASSERT(false); | ||
#else | ||
#define BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS ((void)0); | ||
#endif | ||
|
||
#include <boost/circular_buffer/debug.hpp> | ||
#include <boost/circular_buffer/details.hpp> | ||
#include <boost/circular_buffer/base.hpp> | ||
#include <boost/circular_buffer/space_optimized.hpp> | ||
|
||
#undef BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS | ||
#undef BOOST_CB_IS_CONVERTIBLE | ||
#undef BOOST_CB_ASSERT | ||
|
||
#endif // #if !defined(BOOST_CIRCULAR_BUFFER_HPP) |
Oops, something went wrong.