Opened 7 years ago

#11943 new Bugs

std::vector does not have a member data() in c++03 mode

Reported by: angela.xie@… Owned by: Vladimir Prus
Milestone: To Be Determined Component: program_options
Version: Boost 1.60.0 Severity: Problem
Keywords: Cc:

Description

Problem:program_options/exception_txt_test[_dll] fails in c++03 mode with Oracle studio 12.5 due to std::vector not having a member data() in c++03 mode.

in program_options/test/exception_txt_test.cpp in line of 50: 50:void test_each_exception_message(const string& test_description, const vector<const char*>& argv, options_description& desc, int style, string exception_msg, istream& is = cin)

... in line 62: 62: store(parse_command_line(argv.size(), argv.data(), desc, style), vm); According to definition of std::vector, member function

data

(C++11)

direct access to the underlying array

(public member function)

Change History (0)

Note: See TracTickets for help on using tickets.