3 #include <boost/algorithm/string/classification.hpp>
4 #include <boost/algorithm/string/split.hpp>
5 #include <boost/lexical_cast.hpp>
22 std::vector<std::string> splt_vec_A;
23 boost::split(splt_vec_A, A, boost::is_any_of(
"L_/"),
24 boost::token_compress_on);
25 std::vector<std::string> splt_vec_B;
26 boost::split(splt_vec_B, B, boost::is_any_of(
"L_/"),
27 boost::token_compress_on);
28 for (
int i = 1; i < splt_vec_A.size(); ++i) {
29 Index i_A = boost::lexical_cast<Index>(splt_vec_A[i]);
30 Index i_B = boost::lexical_cast<Index>(splt_vec_B[i]);
36 }
catch (std::exception &e) {
37 err_log().
error(
"In traits<Configuration>::name_compare");
38 err_log() <<
"A: " << A << std::endl;
39 err_log() <<
"B: " << B << std::endl;
40 err_log() << e.what() << std::endl;
void error(const std::string &what)
INDEX_TYPE Index
For long integer indexing:
static const std::string short_name
static const std::string name