Opened 4 years ago

Last modified 4 years ago

#13559 new Bugs

boost::program_options::detail::make_vector class removed?

Reported by: anonymous Owned by: Vladimir Prus
Milestone: To Be Determined Component: program_options
Version: Boost 1.67.0 Severity: Problem
Keywords: Cc:

Description

Boost v 1.66 contains this in program_options/detail/parsers.hpp

namespace boost { namespace program_options {

namespace detail {

template<class charT, class Iterator> std::vector<std::basic_string<charT> > make_vector(Iterator i, Iterator e) {

std::vector<std::basic_string<charT> > result; Some compilers don't have templated constructor for vector, so we can't create vector from (argv+1, argv+argc) range for(; i != e; ++i)

result.push_back(*i);

return result;

}

}

This is not present in v 1.67, and the release notes make no mention of the change. Was it left out inadvertently? Moved to a different library?

Change History (4)

comment:1 by johnson@…, 4 years ago

forgot to put in my email address

comment:2 by Kohei Takahashi, 4 years ago

Component: Noneprogram_options
Owner: set to Vladimir Prus

comment:3 by Vladimir Prus, 4 years ago

Hi,

this function has been removed in commit https://github.com/boostorg/program_options/commit/110772c0ac672ef2972d251886215bb89933bf00

It was part of the detail namespace, and Boost convention is that content of the detail namespace should not be relied on and can be changed without warnings. Did that cause any problems?

comment:4 by anonymous, 4 years ago

A program (from other sources) I was compiling made a direct call to that class. I've informed the author of the change.

Note: See TracTickets for help on using tickets.