diff --git a/include/boost/program_options/detail/cmdline.hpp b/include/boost/program_options/detail/cmdline.hpp index 8e3bcc6..dce407c 100644 --- a/include/boost/program_options/detail/cmdline.hpp +++ b/include/boost/program_options/detail/cmdline.hpp @@ -136,7 +136,7 @@ namespace boost { namespace program_options { namespace detail { const std::vector& style_parsers); // Copies of input. - std::vector args; + std::vector m_args; style_t m_style; bool m_allow_unregistered; diff --git a/src/cmdline.cpp b/src/cmdline.cpp index 5f8dc24..c2cf1da 100644 --- a/src/cmdline.cpp +++ b/src/cmdline.cpp @@ -103,7 +103,7 @@ namespace boost { namespace program_options { namespace detail { void cmdline::init(const vector& args) { - this->args = args; + this->m_args = args; m_style = command_line_style::default_style; m_desc = 0; m_positional = 0; @@ -244,6 +244,7 @@ namespace boost { namespace program_options { namespace detail { style_parsers.push_back(boost::bind(&cmdline::parse_terminator, this, _1)); vector