Я видел несколько примеров, которые показывают, как использовать split_iterator, но Visual Studio 2012 показывает мне эту ошибку: Error: argument for class template "boost::algorithm::split_iterator" is missing
Это мой код:
...
#include "boost/algorithm/string/iter_find.hpp"
#include "boost/algorithm/string/finder.hpp"
...
const std::string sintactic_production_rule_representation[] =
{
...
"P → B eol P",
"P → F eol P",
...
}
...
for(int i = 0; i < N_PRODUCTIONS_SINTLL; i++)
{
std::vector<std::string> splittedProduction;
boost::split_iterator(
splittedProduction,
sintactic_production_rule_representation[i],
boost::first_finder("→")
);
}
Я извлек iter_find.hpp
и finder.hpp
и зависимости в файлы ресурсов с помощью инструмента boost bcp.
Я также пробовал boost::split_iterator<std::string>(...)
получить аргументы, не соответствующие ошибке.
boost::split_iterator
— это шаблон класса, а не функция. Может быть, вы хотите использоватьboost::split
? - person Oleg Andriyanov   schedule 16.01.2016