update boost

This commit is contained in:
2023-11-24 12:56:13 -06:00
parent cfc99971af
commit 19d727037a
9260 changed files with 849256 additions and 299957 deletions

View File

@@ -15,6 +15,7 @@
# pragma warning(disable : 4127) // conditional expression constant
#endif
#include <cstddef>
#include <algorithm>
#include <functional>
@@ -210,22 +211,20 @@ public:
T *push_sequence(std::size_t count, T const &t)
{
// Check to see if we have overflowed this buffer
std::size_t size_left = static_cast< std::size_t >(this->end_ - this->curr_);
if (size_left < count)
{
// allocate a new block and return a ptr to the new memory
return this->grow_(count, t);
}
// This is the ptr to return
T *ptr = this->curr_;
// Advance the high-water mark
this->curr_ += count;
// Check to see if we have overflowed this buffer
if(std::less<void*>()(this->end_, this->curr_))
{
// oops, back this out.
this->curr_ = ptr;
// allocate a new block and return a ptr to the new memory
return this->grow_(count, t);
}
return ptr;
}

View File

@@ -127,8 +127,13 @@ enum transform_scope { scope_next = 0, scope_rest = 1 };
//
template<typename OutputIterator, typename Char>
struct case_converting_iterator
: std::iterator<std::output_iterator_tag, Char, void, void, case_converting_iterator<OutputIterator, Char> >
{
typedef std::output_iterator_tag iterator_category;
typedef Char value_type;
typedef void difference_type;
typedef void pointer;
typedef case_converting_iterator<OutputIterator, Char> reference;
case_converting_iterator(OutputIterator const &out, traits<Char> const *tr)
: out_(out)
, traits_(tr)
@@ -206,8 +211,13 @@ inline bool set_transform(Iterator &, transform_op, transform_scope)
//
template<typename Char>
struct noop_output_iterator
: std::iterator<std::output_iterator_tag, Char, void, void, noop_output_iterator<Char> >
{
typedef std::output_iterator_tag iterator_category;
typedef Char value_type;
typedef void difference_type;
typedef void pointer;
typedef noop_output_iterator<Char> reference;
noop_output_iterator &operator ++()
{
return *this;

View File

@@ -95,7 +95,7 @@ template<typename Char>
struct char_class_impl;
#if defined(__QNXNTO__)
#if defined(__QNXNTO__) || defined(__VXWORKS__)
///////////////////////////////////////////////////////////////////////////////
//

View File

@@ -38,8 +38,8 @@
// Config logic taken from boost/regex/config.hpp
#ifndef BOOST_XPRESSIVE_HAS_MS_STACK_GUARD
# if (defined(_WIN32) || defined(_WIN64) || defined(_WINCE)) \
&& !defined(__GNUC__) \
&& !(defined(__BORLANDC__) && (__BORLANDC__ >= 0x600)) \
&& !(defined(__GNUC__) || defined(__BORLANDC__) && defined(__clang__)) \
&& !(defined(BOOST_BORLANDC) && (BOOST_BORLANDC >= 0x600)) \
&& !(defined(__MWERKS__) && (__MWERKS__ <= 0x3003))
# define BOOST_XPRESSIVE_HAS_MS_STACK_GUARD 1
# else