make adaptors::tokenized compatible with boost 1.54

This commit is contained in:
Michael Krasnyk
2017-03-28 21:26:06 +02:00
committed by Patrick Niklaus
parent dac929f8df
commit ac6f07a744
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -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);