-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boost: Readd and adjust libraries (#34)
* Add back variant. Turns out dynarmic needs this * Explicitely add circular_buffer. We rely on this but it was removed previously * Trim down url and iostreams libraries to what we need
- Loading branch information
1 parent
4b0f33f
commit 80f97ea
Showing
239 changed files
with
22,752 additions
and
9,301 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
//----------------------------------------------------------------------------- | ||
// boost blank.hpp header file | ||
// See http://www.boost.org for updates, documentation, and revision history. | ||
//----------------------------------------------------------------------------- | ||
// | ||
// Copyright (c) 2003 | ||
// Eric Friedman | ||
// | ||
// 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) | ||
|
||
#ifndef BOOST_BLANK_HPP | ||
#define BOOST_BLANK_HPP | ||
|
||
#include "boost/blank_fwd.hpp" | ||
|
||
#if !defined(BOOST_NO_IOSTREAM) | ||
#include <iosfwd> // for std::basic_ostream forward declare | ||
#include "boost/detail/templated_streams.hpp" | ||
#endif // BOOST_NO_IOSTREAM | ||
|
||
#include "boost/type_traits/integral_constant.hpp" | ||
#include "boost/type_traits/is_empty.hpp" | ||
#include "boost/type_traits/is_pod.hpp" | ||
#include "boost/type_traits/is_stateless.hpp" | ||
|
||
namespace boost { | ||
|
||
struct blank | ||
{ | ||
}; | ||
|
||
// type traits specializations | ||
// | ||
|
||
template <> | ||
struct is_pod< blank > | ||
: boost::true_type | ||
{ | ||
}; | ||
|
||
template <> | ||
struct is_empty< blank > | ||
: boost::true_type | ||
{ | ||
}; | ||
|
||
template <> | ||
struct is_stateless< blank > | ||
: boost::true_type | ||
{ | ||
}; | ||
|
||
// relational operators | ||
// | ||
|
||
inline bool operator==(const blank&, const blank&) | ||
{ | ||
return true; | ||
} | ||
|
||
inline bool operator<=(const blank&, const blank&) | ||
{ | ||
return true; | ||
} | ||
|
||
inline bool operator>=(const blank&, const blank&) | ||
{ | ||
return true; | ||
} | ||
|
||
inline bool operator!=(const blank&, const blank&) | ||
{ | ||
return false; | ||
} | ||
|
||
inline bool operator<(const blank&, const blank&) | ||
{ | ||
return false; | ||
} | ||
|
||
inline bool operator>(const blank&, const blank&) | ||
{ | ||
return false; | ||
} | ||
|
||
// streaming support | ||
// | ||
#if !defined(BOOST_NO_IOSTREAM) | ||
|
||
BOOST_TEMPLATED_STREAM_TEMPLATE(E,T) | ||
inline BOOST_TEMPLATED_STREAM(ostream, E,T)& operator<<( | ||
BOOST_TEMPLATED_STREAM(ostream, E,T)& out | ||
, const blank& | ||
) | ||
{ | ||
// (output nothing) | ||
return out; | ||
} | ||
|
||
#endif // BOOST_NO_IOSTREAM | ||
|
||
} // namespace boost | ||
|
||
#endif // BOOST_BLANK_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,22 @@ | ||
//----------------------------------------------------------------------------- | ||
// boost blank_fwd.hpp header file | ||
// See http://www.boost.org for updates, documentation, and revision history. | ||
//----------------------------------------------------------------------------- | ||
// | ||
// Copyright (c) 2003 | ||
// Eric Friedman | ||
// | ||
// 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) | ||
|
||
#ifndef BOOST_BLANK_FWD_HPP | ||
#define BOOST_BLANK_FWD_HPP | ||
|
||
namespace boost { | ||
|
||
struct blank; | ||
|
||
} // namespace boost | ||
|
||
#endif // BOOST_BLANK_FWD_HPP |
This file was deleted.
Oops, something went wrong.
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,65 @@ | ||
// 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. | ||
|
||
/*! @file | ||
Includes <boost/circular_buffer/base.hpp> | ||
*/ | ||
|
||
#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/config/workaround.hpp> | ||
#include <boost/static_assert.hpp> | ||
|
||
/*! Debug support control. */ | ||
#if !defined(BOOST_CB_ENABLE_DEBUG) | ||
#define BOOST_CB_ENABLE_DEBUG 0 | ||
#endif | ||
|
||
/*! INTERNAL ONLY */ | ||
#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 | ||
|
||
/*! INTERNAL ONLY */ | ||
#if BOOST_WORKAROUND(BOOST_BORLANDC, <= 0x0550) || BOOST_WORKAROUND(__MWERKS__, <= 0x2407) | ||
#define BOOST_CB_IS_CONVERTIBLE(Iterator, Type) ((void)0) | ||
#else | ||
#include <iterator> | ||
#include <boost/type_traits/is_convertible.hpp> | ||
#define BOOST_CB_IS_CONVERTIBLE(Iterator, Type) \ | ||
BOOST_STATIC_ASSERT((is_convertible<typename std::iterator_traits<Iterator>::value_type, Type>::value)) | ||
#endif | ||
|
||
/*! INTERNAL ONLY */ | ||
#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.