aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/boost/format
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2022-08-08 20:45:08 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2022-08-08 20:45:08 +0300
commit775728b3e92dec038c56f4f12fb48ef4d053cbc9 (patch)
tree440f127663e6da96542493e4bf8c0fd24abe5608 /contrib/restricted/boost/format
parent74dcc580b7a2011a5bb44e20d1f4fa2a5275e0f9 (diff)
downloadydb-775728b3e92dec038c56f4f12fb48ef4d053cbc9.tar.gz
Update contrib/restricted/boost/format to 1.79.0
Diffstat (limited to 'contrib/restricted/boost/format')
-rw-r--r--contrib/restricted/boost/format/LICENSE23
-rw-r--r--contrib/restricted/boost/format/README.md7
-rw-r--r--contrib/restricted/boost/format/include/boost/format.hpp2
-rw-r--r--contrib/restricted/boost/format/include/boost/format/alt_sstream.hpp1
-rw-r--r--contrib/restricted/boost/format/include/boost/format/alt_sstream_impl.hpp8
-rw-r--r--contrib/restricted/boost/format/include/boost/format/detail/config_macros.hpp8
-rw-r--r--contrib/restricted/boost/format/include/boost/format/exceptions.hpp11
-rw-r--r--contrib/restricted/boost/format/include/boost/format/format_class.hpp2
8 files changed, 43 insertions, 19 deletions
diff --git a/contrib/restricted/boost/format/LICENSE b/contrib/restricted/boost/format/LICENSE
new file mode 100644
index 0000000000..36b7cd93cd
--- /dev/null
+++ b/contrib/restricted/boost/format/LICENSE
@@ -0,0 +1,23 @@
+Boost Software License - Version 1.0 - August 17th, 2003
+
+Permission is hereby granted, free of charge, to any person or organization
+obtaining a copy of the software and accompanying documentation covered by
+this license (the "Software") to use, reproduce, display, distribute,
+execute, and transmit the Software, and to prepare derivative works of the
+Software, and to permit third-parties to whom the Software is furnished to
+do so, all subject to the following:
+
+The copyright notices in the Software and this entire statement, including
+the above license grant, this restriction and the following disclaimer,
+must be included in all copies of the Software, in whole or in part, and
+all derivative works of the Software, unless such copies or derivative
+works are solely in the form of machine-executable object code generated by
+a source language processor.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
diff --git a/contrib/restricted/boost/format/README.md b/contrib/restricted/boost/format/README.md
index 64a61e9fa2..de632fcf3d 100644
--- a/contrib/restricted/boost/format/README.md
+++ b/contrib/restricted/boost/format/README.md
@@ -11,17 +11,16 @@ Distributed under the [Boost Software License, Version 1.0](http://www.boost.org
### Build Status
-Branch | Travis | Appveyor | Coverity Scan | codecov.io | Deps | Docs | Tests |
+Branch | GHA CI | Appveyor | Coverity Scan | codecov.io | Deps | Docs | Tests |
:-------------: | ------ | -------- | ------------- | ---------- | ---- | ---- | ----- |
-[`master`](https://github.com/boostorg/format/tree/master) | [![Build Status](https://travis-ci.org/boostorg/format.svg?branch=master)](https://travis-ci.org/boostorg/format) | [![Build status](https://ci.appveyor.com/api/projects/status/tkcumf8nu6tb697d/branch/master?svg=true)](https://ci.appveyor.com/project/jeking3/format-bhjc4/branch/master) | [![Coverity Scan Build Status](https://scan.coverity.com/projects/14007/badge.svg)](https://scan.coverity.com/projects/boostorg-format) | [![codecov](https://codecov.io/gh/boostorg/format/branch/master/graph/badge.svg)](https://codecov.io/gh/boostorg/format/branch/master) | [![Deps](https://img.shields.io/badge/deps-master-brightgreen.svg)](https://pdimov.github.io/boostdep-report/master/format.html) | [![Documentation](https://img.shields.io/badge/docs-master-brightgreen.svg)](http://www.boost.org/doc/libs/master/doc/html/format.html) | [![Enter the Matrix](https://img.shields.io/badge/matrix-master-brightgreen.svg)](http://www.boost.org/development/tests/master/developer/format.html)
-[`develop`](https://github.com/boostorg/format/tree/develop) | [![Build Status](https://travis-ci.org/boostorg/format.svg?branch=develop)](https://travis-ci.org/boostorg/format) | [![Build status](https://ci.appveyor.com/api/projects/status/tkcumf8nu6tb697d/branch/develop?svg=true)](https://ci.appveyor.com/project/jeking3/format-bhjc4/branch/develop) | [![Coverity Scan Build Status](https://scan.coverity.com/projects/14007/badge.svg)](https://scan.coverity.com/projects/boostorg-format) | [![codecov](https://codecov.io/gh/boostorg/format/branch/develop/graph/badge.svg)](https://codecov.io/gh/boostorg/format/branch/develop) | [![Deps](https://img.shields.io/badge/deps-develop-brightgreen.svg)](https://pdimov.github.io/boostdep-report/develop/format.html) | [![Documentation](https://img.shields.io/badge/docs-develop-brightgreen.svg)](http://www.boost.org/doc/libs/develop/doc/html/format.html) | [![Enter the Matrix](https://img.shields.io/badge/matrix-develop-brightgreen.svg)](http://www.boost.org/development/tests/develop/developer/format.html)
+[`master`](https://github.com/boostorg/format/tree/master) | [![Build Status](https://github.com/boostorg/format/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/boostorg/format/actions?query=branch:master) | [![Build status](https://ci.appveyor.com/api/projects/status/tkcumf8nu6tb697d/branch/master?svg=true)](https://ci.appveyor.com/project/jeking3/format-bhjc4/branch/master) | [![Coverity Scan Build Status](https://scan.coverity.com/projects/14007/badge.svg)](https://scan.coverity.com/projects/boostorg-format) | [![codecov](https://codecov.io/gh/boostorg/format/branch/master/graph/badge.svg)](https://codecov.io/gh/boostorg/format/branch/master) | [![Deps](https://img.shields.io/badge/deps-master-brightgreen.svg)](https://pdimov.github.io/boostdep-report/master/format.html) | [![Documentation](https://img.shields.io/badge/docs-master-brightgreen.svg)](http://www.boost.org/doc/libs/master/doc/html/format.html) | [![Enter the Matrix](https://img.shields.io/badge/matrix-master-brightgreen.svg)](http://www.boost.org/development/tests/master/developer/format.html)
+[`develop`](https://github.com/boostorg/format/tree/develop) | [![Build Status](https://github.com/boostorg/format/actions/workflows/ci.yml/badge.svg?branch=develop)](https://github.com/boostorg/format/actions?query=branch:develop) | [![Build status](https://ci.appveyor.com/api/projects/status/tkcumf8nu6tb697d/branch/develop?svg=true)](https://ci.appveyor.com/project/jeking3/format-bhjc4/branch/develop) | [![Coverity Scan Build Status](https://scan.coverity.com/projects/14007/badge.svg)](https://scan.coverity.com/projects/boostorg-format) | [![codecov](https://codecov.io/gh/boostorg/format/branch/develop/graph/badge.svg)](https://codecov.io/gh/boostorg/format/branch/develop) | [![Deps](https://img.shields.io/badge/deps-develop-brightgreen.svg)](https://pdimov.github.io/boostdep-report/develop/format.html) | [![Documentation](https://img.shields.io/badge/docs-develop-brightgreen.svg)](http://www.boost.org/doc/libs/develop/doc/html/format.html) | [![Enter the Matrix](https://img.shields.io/badge/matrix-develop-brightgreen.svg)](http://www.boost.org/development/tests/develop/developer/format.html)
### Directories
| Name | Purpose |
| ----------- | ------------------------------ |
| `benchmark` | benchmark tool |
-| `ci` | continuous integration scripts |
| `doc` | documentation |
| `examples` | use case examples |
| `include` | headers |
diff --git a/contrib/restricted/boost/format/include/boost/format.hpp b/contrib/restricted/boost/format/include/boost/format.hpp
index 73464a819f..0f27a8fbe8 100644
--- a/contrib/restricted/boost/format/include/boost/format.hpp
+++ b/contrib/restricted/boost/format/include/boost/format.hpp
@@ -26,7 +26,7 @@
// *** Compatibility framework
#include <boost/format/detail/compat_workarounds.hpp>
-#ifdef BOOST_NO_LOCALE_ISIDIGIT
+#ifdef BOOST_NO_LOCALE_ISDIGIT
#include <cctype> // we'll use the non-locale <cctype>'s std::isdigit(int)
#endif
diff --git a/contrib/restricted/boost/format/include/boost/format/alt_sstream.hpp b/contrib/restricted/boost/format/include/boost/format/alt_sstream.hpp
index 138e175738..3a0a07a1de 100644
--- a/contrib/restricted/boost/format/include/boost/format/alt_sstream.hpp
+++ b/contrib/restricted/boost/format/include/boost/format/alt_sstream.hpp
@@ -16,6 +16,7 @@
#define BOOST_SK_ALT_SSTREAM_HPP
#include <string>
+#include <boost/core/allocator_access.hpp>
#include <boost/format/detail/compat_workarounds.hpp>
#include <boost/utility/base_from_member.hpp>
#include <boost/shared_ptr.hpp>
diff --git a/contrib/restricted/boost/format/include/boost/format/alt_sstream_impl.hpp b/contrib/restricted/boost/format/include/boost/format/alt_sstream_impl.hpp
index 41e6c5ca8e..05379dcb9e 100644
--- a/contrib/restricted/boost/format/include/boost/format/alt_sstream_impl.hpp
+++ b/contrib/restricted/boost/format/include/boost/format/alt_sstream_impl.hpp
@@ -38,10 +38,10 @@ namespace boost {
size_type sz=s.size();
if(sz != 0 && mode_ & (::std::ios_base::in | ::std::ios_base::out) ) {
#ifdef _RWSTD_NO_CLASS_PARTIAL_SPEC
- void *vd_ptr = alloc_.allocate(sz, is_allocated_? eback() : 0);
+ void *vd_ptr = boost::allocator_allocate(alloc_, sz, is_allocated_? eback() : 0);
Ch *new_ptr = static_cast<Ch *>(vd_ptr);
#else
- Ch *new_ptr = alloc_.allocate(sz, is_allocated_? eback() : 0);
+ Ch *new_ptr = boost::allocator_allocate(alloc_, sz, is_allocated_? eback() : 0);
#endif
// if this didnt throw, we're safe, update the buffer
dealloc();
@@ -255,10 +255,10 @@ namespace boost {
if(0 < add_size) {
new_size += add_size;
#ifdef _RWSTD_NO_CLASS_PARTIAL_SPEC
- void *vdptr = alloc_.allocate(new_size, is_allocated_? oldptr : 0);
+ void *vdptr = boost::allocator_allocate(alloc_, new_size, is_allocated_? oldptr : 0);
newptr = static_cast<Ch *>(vdptr);
#else
- newptr = alloc_.allocate(new_size);
+ newptr = boost::allocator_allocate(alloc_, new_size, is_allocated_? oldptr : 0);
#endif
}
diff --git a/contrib/restricted/boost/format/include/boost/format/detail/config_macros.hpp b/contrib/restricted/boost/format/include/boost/format/detail/config_macros.hpp
index 44d1e86c63..9bd9e6bb34 100644
--- a/contrib/restricted/boost/format/include/boost/format/detail/config_macros.hpp
+++ b/contrib/restricted/boost/format/include/boost/format/detail/config_macros.hpp
@@ -38,14 +38,14 @@
#endif
#if defined(BOOST_NO_STD_LOCALE) || \
- ( BOOST_WORKAROUND(__BORLANDC__, <= 0x564) \
- || BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT( 0x570 ) ) )
-// some future __BORLANDC__ >0x564 versions might not need this
+ ( BOOST_WORKAROUND(BOOST_BORLANDC, <= 0x564) \
+ || BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT( 0x570 ) ) )
+// some future BOOST_BORLANDC >0x564 versions might not need this
// 0x570 is Borland's kylix branch
#define BOOST_NO_LOCALE_ISDIGIT
#endif
-#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x570) ) || BOOST_WORKAROUND( BOOST_MSVC, BOOST_TESTED_AT(1300))
+#if BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x570) ) || BOOST_WORKAROUND( BOOST_MSVC, BOOST_TESTED_AT(1300))
#define BOOST_NO_OVERLOAD_FOR_NON_CONST
#endif
diff --git a/contrib/restricted/boost/format/include/boost/format/exceptions.hpp b/contrib/restricted/boost/format/include/boost/format/exceptions.hpp
index 5402977f76..4401b4ab5d 100644
--- a/contrib/restricted/boost/format/include/boost/format/exceptions.hpp
+++ b/contrib/restricted/boost/format/include/boost/format/exceptions.hpp
@@ -17,6 +17,7 @@
#define BOOST_FORMAT_EXCEPTIONS_HPP
+#include <boost/config.hpp>
#include <stdexcept>
@@ -30,7 +31,7 @@ namespace boost {
{
public:
format_error() {}
- virtual const char *what() const noexcept {
+ virtual const char *what() const BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE {
return "boost::format_error: "
"format generic failure";
}
@@ -44,7 +45,7 @@ namespace boost {
: pos_(pos), next_(size) {}
std::size_t get_pos() const { return pos_; }
std::size_t get_next() const { return next_; }
- virtual const char *what() const noexcept {
+ virtual const char *what() const BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE {
return "boost::bad_format_string: format-string is ill-formed";
}
};
@@ -57,7 +58,7 @@ namespace boost {
: cur_(cur), expected_(expected) {}
std::size_t get_cur() const { return cur_; }
std::size_t get_expected() const { return expected_; }
- virtual const char *what() const noexcept {
+ virtual const char *what() const BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE {
return "boost::too_few_args: "
"format-string referred to more arguments than were passed";
}
@@ -71,7 +72,7 @@ namespace boost {
: cur_(cur), expected_(expected) {}
std::size_t get_cur() const { return cur_; }
std::size_t get_expected() const { return expected_; }
- virtual const char *what() const noexcept {
+ virtual const char *what() const BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE {
return "boost::too_many_args: "
"format-string referred to fewer arguments than were passed";
}
@@ -87,7 +88,7 @@ namespace boost {
int get_index() const { return index_; }
int get_beg() const { return beg_; }
int get_end() const { return end_; }
- virtual const char *what() const noexcept {
+ virtual const char *what() const BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE {
return "boost::out_of_range: "
"tried to refer to an argument (or item) number which"
" is out of range, according to the format string";
diff --git a/contrib/restricted/boost/format/include/boost/format/format_class.hpp b/contrib/restricted/boost/format/include/boost/format/format_class.hpp
index ae98be4d75..a7ccc29e7f 100644
--- a/contrib/restricted/boost/format/include/boost/format/format_class.hpp
+++ b/contrib/restricted/boost/format/include/boost/format/format_class.hpp
@@ -119,7 +119,7 @@ namespace boost {
unsigned char exceptions(unsigned char newexcept);
#if !defined( BOOST_NO_MEMBER_TEMPLATE_FRIENDS ) \
- && !BOOST_WORKAROUND(__BORLANDC__, <= 0x570) \
+ && !BOOST_WORKAROUND(BOOST_BORLANDC, <= 0x570) \
&& !BOOST_WORKAROUND( _CRAYC, != 0) \
&& !BOOST_WORKAROUND(__DECCXX_VER, BOOST_TESTED_AT(60590042))
// use friend templates and private members only if supported