Ticket #3072: program_options.diff

File program_options.diff, 2.6 KB (added by Richard Webb <richard.webb@…>, 13 years ago)
  • boost/program_options/detail/parsers.hpp

     
    77#define BOOST_PARSERS_HPP_VP_2004_05_06
    88
    99#include <boost/program_options/detail/convert.hpp>
     10#include <iterator> //for back_inserter
    1011
    1112namespace boost { namespace program_options {
    1213
  • libs/program_options/src/cmdline.cpp

     
    196196
    197197        if (m_additional_parser)
    198198            style_parsers.push_back(
    199                 bind(&cmdline::handle_additional_parser, this, _1));
     199                boost::bind(&cmdline::handle_additional_parser, this, _1));
    200200
    201201        if (m_style & allow_long)
    202202            style_parsers.push_back(
    203                 bind(&cmdline::parse_long_option, this, _1));
     203                boost::bind(&cmdline::parse_long_option, this, _1));
    204204
    205205        if ((m_style & allow_long_disguise))
    206206            style_parsers.push_back(
    207                 bind(&cmdline::parse_disguised_long_option, this, _1));
     207                boost::bind(&cmdline::parse_disguised_long_option, this, _1));
    208208
    209209        if ((m_style & allow_short) && (m_style & allow_dash_for_short))
    210210            style_parsers.push_back(
    211                 bind(&cmdline::parse_short_option, this, _1));
     211                boost::bind(&cmdline::parse_short_option, this, _1));
    212212
    213213        if ((m_style & allow_short) && (m_style & allow_slash_for_short))
    214             style_parsers.push_back(bind(&cmdline::parse_dos_option, this, _1));
     214            style_parsers.push_back(boost::bind(&cmdline::parse_dos_option, this, _1));
    215215
    216         style_parsers.push_back(bind(&cmdline::parse_terminator, this, _1));
     216        style_parsers.push_back(boost::bind(&cmdline::parse_terminator, this, _1));
    217217
    218218        vector<option> result;
    219219        while(!args.empty())
  • libs/program_options/src/parsers.cpp

     
    7070           
    7171            std::transform(opt.value.begin(), opt.value.end(),
    7272                           back_inserter(result.value),
    73                            bind(from_utf8, _1));
     73                           boost::bind(from_utf8, _1));
    7474            return result;
    7575        }
    7676    }