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

@@ -11,7 +11,7 @@
#include <boost/chrono/config.hpp>
#include <string>
#include <boost/type_traits/is_scalar.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/core/enable_if.hpp>
#include <boost/type_traits/is_signed.hpp>
#include <boost/mpl/if.hpp>
#include <boost/integer/common_factor_rt.hpp>

View File

@@ -17,7 +17,7 @@
#include <boost/chrono/io/duration_put.hpp>
#include <boost/chrono/io/duration_get.hpp>
#include <boost/chrono/io/utility/manip_base.hpp>
#include <boost/detail/no_exceptions_support.hpp>
#include <boost/core/no_exceptions_support.hpp>
#include <boost/type_traits/is_integral.hpp>
#include <boost/type_traits/is_floating_point.hpp>
#include <locale>
@@ -166,7 +166,7 @@ namespace boost
{
os.setstate(std::ios_base::failbit);
}
BOOST_CATCH (std::ios_base::failure )
BOOST_CATCH (const std::ios_base::failure& )
{
flag = true;
}
@@ -221,7 +221,7 @@ namespace boost
{
os.setstate(std::ios_base::failbit);
}
BOOST_CATCH (std::ios_base::failure )
BOOST_CATCH (const std::ios_base::failure& )
{
flag = true;
}
@@ -276,7 +276,7 @@ namespace boost
{
is.setstate(std::ios_base::failbit);
}
BOOST_CATCH (std::ios_base::failure )
BOOST_CATCH (const std::ios_base::failure& )
{
flag = true;
}

View File

@@ -102,7 +102,7 @@ namespace boost
*/
template <typename Rep, typename Period>
iter_type put(iter_type s, std::ios_base& ios, char_type fill, duration<Rep, Period> const& d, const CharT* pattern,
const CharT* pat_end, const char_type* val = 0) const
const CharT* pat_end, const char_type* val = BOOST_NULLPTR) const
{
if (std::has_facet<duration_units<CharT> >(ios.getloc()))
{
@@ -119,7 +119,7 @@ namespace boost
template <typename Rep, typename Period>
iter_type put(duration_units<CharT> const& units_facet, iter_type s, std::ios_base& ios, char_type fill,
duration<Rep, Period> const& d, const CharT* pattern, const CharT* pat_end, const char_type* val = 0) const
duration<Rep, Period> const& d, const CharT* pattern, const CharT* pat_end, const char_type* val = BOOST_NULLPTR) const
{
const std::ctype<char_type>& ct = std::use_facet<std::ctype<char_type> >(ios.getloc());
@@ -170,7 +170,7 @@ namespace boost
* @Returns An iterator pointing immediately after the last character produced.
*/
template <typename Rep, typename Period>
iter_type put(iter_type s, std::ios_base& ios, char_type fill, duration<Rep, Period> const& d, const char_type* val = 0) const
iter_type put(iter_type s, std::ios_base& ios, char_type fill, duration<Rep, Period> const& d, const char_type* val = BOOST_NULLPTR) const
{
if (std::has_facet<duration_units<CharT> >(ios.getloc()))
{
@@ -198,7 +198,7 @@ namespace boost
* @Returns s, iterator pointing immediately after the last character produced.
*/
template <typename Rep, typename Period>
iter_type put_value(iter_type s, std::ios_base& ios, char_type fill, duration<Rep, Period> const& d, const char_type* val = 0) const
iter_type put_value(iter_type s, std::ios_base& ios, char_type fill, duration<Rep, Period> const& d, const char_type* val = BOOST_NULLPTR) const
{
if (val)
{
@@ -213,7 +213,7 @@ namespace boost
}
template <typename Rep, typename Period>
iter_type put_value(iter_type s, std::ios_base& ios, char_type fill, duration<process_times<Rep>, Period> const& d, const char_type* = 0) const
iter_type put_value(iter_type s, std::ios_base& ios, char_type fill, duration<process_times<Rep>, Period> const& d, const char_type* = BOOST_NULLPTR) const
{
*s++ = CharT('{');
s = put_value(s, ios, fill, process_real_cpu_clock::duration(d.count().real));

View File

@@ -10,7 +10,7 @@
#ifndef BOOST_CHRONO_IO_DURATION_STYLE_HPP
#define BOOST_CHRONO_IO_DURATION_STYLE_HPP
#include <boost/detail/scoped_enum_emulation.hpp>
#include <boost/core/scoped_enum.hpp>
namespace boost
{

View File

@@ -983,9 +983,9 @@ namespace boost
if (duration_units_default_holder<CharT>::initialized_)
{
delete[] duration_units_default_holder<CharT>::n_d_valid_units_;
duration_units_default_holder<CharT>::n_d_valid_units_ = 0;
duration_units_default_holder<CharT>::n_d_valid_units_ = BOOST_NULLPTR;
delete[] duration_units_default_holder<CharT>::valid_units_;
duration_units_default_holder<CharT>::valid_units_ = 0;
duration_units_default_holder<CharT>::valid_units_ = BOOST_NULLPTR;
duration_units_default_holder<CharT>::initialized_ = false;
}
}

View File

@@ -29,7 +29,7 @@
#include <boost/chrono/round.hpp>
#include <boost/chrono/detail/scan_keyword.hpp>
#include <boost/static_assert.hpp>
#include <boost/detail/no_exceptions_support.hpp>
#include <boost/core/no_exceptions_support.hpp>
#include <cstring>
#include <locale>
#include <ctime>
@@ -683,7 +683,7 @@ namespace boost
{
os.setstate(std::ios_base::failbit);
}
BOOST_CATCH (std::ios_base::failure )
BOOST_CATCH (const std::ios_base::failure& )
{
flag = true;
}
@@ -732,7 +732,7 @@ namespace boost
{
is.setstate(std::ios_base::failbit);
}
BOOST_CATCH (std::ios_base::failure )
BOOST_CATCH (const std::ios_base::failure& )
{
flag = true;
}

View File

@@ -9,7 +9,8 @@
#ifndef BOOST_CHRONO_IO_TIMEZONE_HPP
#define BOOST_CHRONO_IO_TIMEZONE_HPP
#include <boost/detail/scoped_enum_emulation.hpp>
#include <boost/core/scoped_enum.hpp>
namespace boost
{

View File

@@ -116,9 +116,9 @@ namespace boost
{
register_once(index(), ios_);
void* &pw = ios_.pword(index());
if (pw == 0)
if (pw == BOOST_NULLPTR)
{
return 0;
return BOOST_NULLPTR;
}
return static_cast<T*> (pw);
}
@@ -243,18 +243,18 @@ namespace boost
case std::ios_base::erase_event:
{
void*& pw = ios.pword(index);
if (pw != 0)
if (pw != BOOST_NULLPTR)
{
T* ptr = static_cast<T*> (pw);
delete ptr;
pw = 0;
pw = BOOST_NULLPTR;
}
break;
}
case std::ios_base::copyfmt_event:
{
void*& pw = ios.pword(index);
if (pw != 0)
if (pw != BOOST_NULLPTR)
{
pw = new T(*static_cast<T*> (pw));
}
@@ -303,7 +303,7 @@ namespace boost
explicit ios_state_not_null_ptr(std::ios_base& ios) :
base_type(ios)
{
if (this->get() == 0)
if (this->get() == BOOST_NULLPTR)
{
this->base_type::reset(new T());
}
@@ -314,7 +314,7 @@ namespace boost
void reset(T* new_value) BOOST_NOEXCEPT
{
BOOST_ASSERT(new_value!=0);
BOOST_ASSERT(new_value!=BOOST_NULLPTR);
this->base_type::reset(new_value);
}