aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2024-04-25 13:44:01 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2024-04-25 13:57:24 +0300
commit124653236e7bda842bcd2a7485cb72478a2ee86c (patch)
tree3dd3ce0a2e69182bf719ac3de87a82e6f75611c9
parent38d92a4f5ecd87f2b3874ead842cdb2a53f51c3a (diff)
downloadydb-124653236e7bda842bcd2a7485cb72478a2ee86c.tar.gz
Update contrib/restricted/boost/program_options to 1.85.0
82d37781b18a0a67e32375ee04c6269b3a915139
-rw-r--r--contrib/restricted/boost/program_options/include/boost/program_options/detail/parsers.hpp2
-rw-r--r--contrib/restricted/boost/program_options/include/boost/program_options/parsers.hpp6
-rw-r--r--contrib/restricted/boost/program_options/ya.make4
3 files changed, 8 insertions, 4 deletions
diff --git a/contrib/restricted/boost/program_options/include/boost/program_options/detail/parsers.hpp b/contrib/restricted/boost/program_options/include/boost/program_options/detail/parsers.hpp
index b644aaa176..cdda539cae 100644
--- a/contrib/restricted/boost/program_options/include/boost/program_options/detail/parsers.hpp
+++ b/contrib/restricted/boost/program_options/include/boost/program_options/detail/parsers.hpp
@@ -24,7 +24,7 @@ namespace boost { namespace program_options {
basic_command_line_parser<charT>::
basic_command_line_parser(int argc, const charT* const argv[])
: detail::cmdline(
- to_internal(std::vector<std::basic_string<charT> >(argv+1, argv+argc))),
+ to_internal(std::vector<std::basic_string<charT> >(argc ? argv+1 : argv, argv+argc))),
m_desc()
{}
diff --git a/contrib/restricted/boost/program_options/include/boost/program_options/parsers.hpp b/contrib/restricted/boost/program_options/include/boost/program_options/parsers.hpp
index 0576469278..7d902690a8 100644
--- a/contrib/restricted/boost/program_options/include/boost/program_options/parsers.hpp
+++ b/contrib/restricted/boost/program_options/include/boost/program_options/parsers.hpp
@@ -120,7 +120,11 @@ namespace boost { namespace program_options {
basic_command_line_parser(const std::vector<
std::basic_string<charT> >& args);
/** Creates a command line parser for the specified arguments
- list. The parameters should be the same as passed to 'main'.
+ list. The parameters should be the same as passed to 'main', meaning:
+ @param argc Must be non-negative i.e. >= 0
+ @param argv Argv[argc] must be 0 e.g. nullptr and
+ if argc is >0 argv[0] up to argv[argc-1] must point to
+ null terminated strings
*/
basic_command_line_parser(int argc, const charT* const argv[]);
diff --git a/contrib/restricted/boost/program_options/ya.make b/contrib/restricted/boost/program_options/ya.make
index b7864afb64..179691533c 100644
--- a/contrib/restricted/boost/program_options/ya.make
+++ b/contrib/restricted/boost/program_options/ya.make
@@ -6,9 +6,9 @@ LICENSE(BSL-1.0)
LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
-VERSION(1.84.0)
+VERSION(1.85.0)
-ORIGINAL_SOURCE(https://github.com/boostorg/program_options/archive/boost-1.84.0.tar.gz)
+ORIGINAL_SOURCE(https://github.com/boostorg/program_options/archive/boost-1.85.0.tar.gz)
PEERDIR(
contrib/restricted/boost/any