|
15 | 15 | #include <boost/program_options/positional_options.hpp> |
16 | 16 | #include <boost/throw_exception.hpp> |
17 | 17 |
|
18 | | -#include <boost/bind.hpp> |
| 18 | +#include <boost/bind/bind.hpp> |
19 | 19 |
|
20 | 20 | #include <string> |
21 | 21 | #include <utility> |
@@ -224,24 +224,24 @@ namespace boost { namespace program_options { namespace detail { |
224 | 224 |
|
225 | 225 | if (m_additional_parser) |
226 | 226 | style_parsers.push_back( |
227 | | - boost::bind(&cmdline::handle_additional_parser, this, _1)); |
| 227 | + boost::bind(&cmdline::handle_additional_parser, this, boost::placeholders::_1)); |
228 | 228 |
|
229 | 229 | if (m_style & allow_long) |
230 | 230 | style_parsers.push_back( |
231 | | - boost::bind(&cmdline::parse_long_option, this, _1)); |
| 231 | + boost::bind(&cmdline::parse_long_option, this, boost::placeholders::_1)); |
232 | 232 |
|
233 | 233 | if ((m_style & allow_long_disguise)) |
234 | 234 | style_parsers.push_back( |
235 | | - boost::bind(&cmdline::parse_disguised_long_option, this, _1)); |
| 235 | + boost::bind(&cmdline::parse_disguised_long_option, this, boost::placeholders::_1)); |
236 | 236 |
|
237 | 237 | if ((m_style & allow_short) && (m_style & allow_dash_for_short)) |
238 | 238 | style_parsers.push_back( |
239 | | - boost::bind(&cmdline::parse_short_option, this, _1)); |
| 239 | + boost::bind(&cmdline::parse_short_option, this, boost::placeholders::_1)); |
240 | 240 |
|
241 | 241 | if ((m_style & allow_short) && (m_style & allow_slash_for_short)) |
242 | | - style_parsers.push_back(boost::bind(&cmdline::parse_dos_option, this, _1)); |
| 242 | + style_parsers.push_back(boost::bind(&cmdline::parse_dos_option, this, boost::placeholders::_1)); |
243 | 243 |
|
244 | | - style_parsers.push_back(boost::bind(&cmdline::parse_terminator, this, _1)); |
| 244 | + style_parsers.push_back(boost::bind(&cmdline::parse_terminator, this, boost::placeholders::_1)); |
245 | 245 |
|
246 | 246 | vector<option> result; |
247 | 247 | vector<string>& args = m_args; |
|
0 commit comments