make adaptors::tokenized compatible with boost 1.54
This commit is contained in:
committed by
Patrick Niklaus
parent
dac929f8df
commit
ac6f07a744
@@ -51,7 +51,7 @@ void validate(boost::any &v, const std::vector<std::string> &values, MaxCellSize
|
||||
const std::string &s = validators::get_single_string(values);
|
||||
|
||||
std::vector<size_t> output;
|
||||
boost::copy(s | tokenized(boost::regex(","), -1) | transformed([](const auto &x) {
|
||||
boost::copy(s | tokenized(boost::regex("[^,]+")) | transformed([](const auto &x) {
|
||||
try
|
||||
{
|
||||
return boost::lexical_cast<std::size_t>(x);
|
||||
|
||||
Reference in New Issue
Block a user