Ticket #3072: program_options.diff
File program_options.diff, 2.6 KB (added by , 13 years ago) |
---|
-
boost/program_options/detail/parsers.hpp
7 7 #define BOOST_PARSERS_HPP_VP_2004_05_06 8 8 9 9 #include <boost/program_options/detail/convert.hpp> 10 #include <iterator> //for back_inserter 10 11 11 12 namespace boost { namespace program_options { 12 13 -
libs/program_options/src/cmdline.cpp
196 196 197 197 if (m_additional_parser) 198 198 style_parsers.push_back( 199 b ind(&cmdline::handle_additional_parser, this, _1));199 boost::bind(&cmdline::handle_additional_parser, this, _1)); 200 200 201 201 if (m_style & allow_long) 202 202 style_parsers.push_back( 203 b ind(&cmdline::parse_long_option, this, _1));203 boost::bind(&cmdline::parse_long_option, this, _1)); 204 204 205 205 if ((m_style & allow_long_disguise)) 206 206 style_parsers.push_back( 207 b ind(&cmdline::parse_disguised_long_option, this, _1));207 boost::bind(&cmdline::parse_disguised_long_option, this, _1)); 208 208 209 209 if ((m_style & allow_short) && (m_style & allow_dash_for_short)) 210 210 style_parsers.push_back( 211 b ind(&cmdline::parse_short_option, this, _1));211 boost::bind(&cmdline::parse_short_option, this, _1)); 212 212 213 213 if ((m_style & allow_short) && (m_style & allow_slash_for_short)) 214 style_parsers.push_back(b ind(&cmdline::parse_dos_option, this, _1));214 style_parsers.push_back(boost::bind(&cmdline::parse_dos_option, this, _1)); 215 215 216 style_parsers.push_back(b ind(&cmdline::parse_terminator, this, _1));216 style_parsers.push_back(boost::bind(&cmdline::parse_terminator, this, _1)); 217 217 218 218 vector<option> result; 219 219 while(!args.empty()) -
libs/program_options/src/parsers.cpp
70 70 71 71 std::transform(opt.value.begin(), opt.value.end(), 72 72 back_inserter(result.value), 73 b ind(from_utf8, _1));73 boost::bind(from_utf8, _1)); 74 74 return result; 75 75 } 76 76 }