aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2022-12-25 16:51:15 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2022-12-25 16:51:15 +0300
commitd79a1b51abbda5323e1778d18f676d514902f440 (patch)
treeb63990adaf726679948b00f90a6d0d7af022adaa /contrib
parent7963bc738dbe95955aea313f22e5ee6cbc700482 (diff)
downloadydb-d79a1b51abbda5323e1778d18f676d514902f440.tar.gz
Update contrib/restricted/boost/chrono to 1.81.0
Diffstat (limited to 'contrib')
-rw-r--r--contrib/restricted/boost/chrono/include/boost/chrono/config.hpp1
-rw-r--r--contrib/restricted/boost/chrono/include/boost/chrono/detail/inlined/mac/chrono.hpp8
-rw-r--r--contrib/restricted/boost/chrono/include/boost/chrono/detail/scan_keyword.hpp6
-rw-r--r--contrib/restricted/boost/chrono/include/boost/chrono/duration.hpp4
-rw-r--r--contrib/restricted/boost/chrono/include/boost/chrono/io/duration_io.hpp6
-rw-r--r--contrib/restricted/boost/chrono/include/boost/chrono/io/duration_put.hpp10
-rw-r--r--contrib/restricted/boost/chrono/include/boost/chrono/io/duration_units.hpp4
-rw-r--r--contrib/restricted/boost/chrono/include/boost/chrono/io/time_point_io.hpp4
-rw-r--r--contrib/restricted/boost/chrono/include/boost/chrono/io/utility/ios_base_state_ptr.hpp14
-rw-r--r--contrib/restricted/boost/chrono/include/boost/chrono/time_point.hpp2
10 files changed, 31 insertions, 28 deletions
diff --git a/contrib/restricted/boost/chrono/include/boost/chrono/config.hpp b/contrib/restricted/boost/chrono/include/boost/chrono/config.hpp
index 1045ba3a79..447dca4fd5 100644
--- a/contrib/restricted/boost/chrono/include/boost/chrono/config.hpp
+++ b/contrib/restricted/boost/chrono/include/boost/chrono/config.hpp
@@ -212,5 +212,6 @@
#include <boost/config/auto_link.hpp>
#endif // auto-linking disabled
#endif // BOOST_CHRONO_HEADER_ONLY
+
#endif // BOOST_CHRONO_CONFIG_HPP
diff --git a/contrib/restricted/boost/chrono/include/boost/chrono/detail/inlined/mac/chrono.hpp b/contrib/restricted/boost/chrono/include/boost/chrono/detail/inlined/mac/chrono.hpp
index 9bf6c2bb12..2619d67905 100644
--- a/contrib/restricted/boost/chrono/include/boost/chrono/detail/inlined/mac/chrono.hpp
+++ b/contrib/restricted/boost/chrono/include/boost/chrono/detail/inlined/mac/chrono.hpp
@@ -30,7 +30,7 @@ system_clock::time_point
system_clock::now() BOOST_NOEXCEPT
{
timeval tv;
- gettimeofday(&tv, 0);
+ gettimeofday(&tv, BOOST_NULLPTR);
return time_point(seconds(tv.tv_sec) + microseconds(tv.tv_usec));
}
@@ -39,7 +39,7 @@ system_clock::time_point
system_clock::now(system::error_code & ec)
{
timeval tv;
- gettimeofday(&tv, 0);
+ gettimeofday(&tv, BOOST_NULLPTR);
if (!::boost::chrono::is_throws(ec))
{
ec.clear();
@@ -166,7 +166,7 @@ init_steady_clock(kern_return_t & err)
err = mach_timebase_info(&MachInfo);
if ( err != 0 )
{
- return 0;
+ return BOOST_NULLPTR;
}
if (MachInfo.numer == MachInfo.denom)
@@ -185,7 +185,7 @@ init_steady_clock_ec(kern_return_t & err)
err = mach_timebase_info(&MachInfo);
if ( err != 0 )
{
- return 0;
+ return BOOST_NULLPTR;
}
if (MachInfo.numer == MachInfo.denom)
diff --git a/contrib/restricted/boost/chrono/include/boost/chrono/detail/scan_keyword.hpp b/contrib/restricted/boost/chrono/include/boost/chrono/detail/scan_keyword.hpp
index aa4e2e87b9..3bef04781b 100644
--- a/contrib/restricted/boost/chrono/include/boost/chrono/detail/scan_keyword.hpp
+++ b/contrib/restricted/boost/chrono/include/boost/chrono/detail/scan_keyword.hpp
@@ -67,12 +67,14 @@ scan_keyword(InputIterator& b, InputIterator e,
unsigned char* status = statbuf;
// Change free by free_aux to avoid
// Error: Could not find a match for boost::interprocess::unique_ptr<unsigned char, void(*)(void*)>::unique_ptr(int, extern "C" void(void*))
- unique_ptr<unsigned char, void(*)(void*)> stat_hold(0, free_aux);
+ unique_ptr<unsigned char, void(*)(void*)> stat_hold(BOOST_NULLPTR, free_aux);
if (nkw > sizeof(statbuf))
{
status = (unsigned char*)malloc(nkw);
- if (status == 0)
+ if (status == BOOST_NULLPTR)
+ {
throw_exception(std::bad_alloc());
+ }
stat_hold.reset(status);
}
size_t n_might_match = nkw; // At this point, any keyword might match
diff --git a/contrib/restricted/boost/chrono/include/boost/chrono/duration.hpp b/contrib/restricted/boost/chrono/include/boost/chrono/duration.hpp
index db8cccb25c..aceb732ef5 100644
--- a/contrib/restricted/boost/chrono/include/boost/chrono/duration.hpp
+++ b/contrib/restricted/boost/chrono/include/boost/chrono/duration.hpp
@@ -455,7 +455,7 @@ namespace chrono {
>
>
>
- >::type* = 0
+ >::type* = BOOST_NULLPTR
) : rep_(r) { }
#if defined BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
duration& operator=(const duration& rhs)
@@ -481,7 +481,7 @@ namespace chrono {
mpl::not_ < treat_as_floating_point<Rep2> >
>
>
- >::type* = 0
+ >::type* = BOOST_NULLPTR
)
: rep_(chrono::detail::duration_cast<duration<Rep2, Period2>, duration>()(d).count()) {}
diff --git a/contrib/restricted/boost/chrono/include/boost/chrono/io/duration_io.hpp b/contrib/restricted/boost/chrono/include/boost/chrono/io/duration_io.hpp
index c25adeeee6..198ca4bcd1 100644
--- a/contrib/restricted/boost/chrono/include/boost/chrono/io/duration_io.hpp
+++ b/contrib/restricted/boost/chrono/include/boost/chrono/io/duration_io.hpp
@@ -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;
}
diff --git a/contrib/restricted/boost/chrono/include/boost/chrono/io/duration_put.hpp b/contrib/restricted/boost/chrono/include/boost/chrono/io/duration_put.hpp
index 623eae1bf6..8ed6573def 100644
--- a/contrib/restricted/boost/chrono/include/boost/chrono/io/duration_put.hpp
+++ b/contrib/restricted/boost/chrono/include/boost/chrono/io/duration_put.hpp
@@ -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));
diff --git a/contrib/restricted/boost/chrono/include/boost/chrono/io/duration_units.hpp b/contrib/restricted/boost/chrono/include/boost/chrono/io/duration_units.hpp
index 84faa819a9..1cf0f694cc 100644
--- a/contrib/restricted/boost/chrono/include/boost/chrono/io/duration_units.hpp
+++ b/contrib/restricted/boost/chrono/include/boost/chrono/io/duration_units.hpp
@@ -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;
}
}
diff --git a/contrib/restricted/boost/chrono/include/boost/chrono/io/time_point_io.hpp b/contrib/restricted/boost/chrono/include/boost/chrono/io/time_point_io.hpp
index 96a6f0a9de..93e04e2a0f 100644
--- a/contrib/restricted/boost/chrono/include/boost/chrono/io/time_point_io.hpp
+++ b/contrib/restricted/boost/chrono/include/boost/chrono/io/time_point_io.hpp
@@ -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;
}
diff --git a/contrib/restricted/boost/chrono/include/boost/chrono/io/utility/ios_base_state_ptr.hpp b/contrib/restricted/boost/chrono/include/boost/chrono/io/utility/ios_base_state_ptr.hpp
index 15c8ac4d66..2352db3b0e 100644
--- a/contrib/restricted/boost/chrono/include/boost/chrono/io/utility/ios_base_state_ptr.hpp
+++ b/contrib/restricted/boost/chrono/include/boost/chrono/io/utility/ios_base_state_ptr.hpp
@@ -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);
}
diff --git a/contrib/restricted/boost/chrono/include/boost/chrono/time_point.hpp b/contrib/restricted/boost/chrono/include/boost/chrono/time_point.hpp
index fc230955d9..af7e83fa84 100644
--- a/contrib/restricted/boost/chrono/include/boost/chrono/time_point.hpp
+++ b/contrib/restricted/boost/chrono/include/boost/chrono/time_point.hpp
@@ -182,7 +182,7 @@ namespace chrono {
, typename boost::enable_if
<
boost::is_convertible<Duration2, duration>
- >::type* = 0
+ >::type* = BOOST_NULLPTR
)
: d_(t.time_since_epoch())
{