|
Boost Users : |
From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2008-04-08 08:04:48
Hello *,
I have a question regarding string comparisons. Are the comparisons below
suppose to work in VC 7.1 boost 1.34.0?
Case 1:
bool is_test_string(std::string const& str)
{
std::string const& compare_with=std::string("test_string");
boost::algorithm::is_iequal comparator;
return comparator(str, compare_with);
}
Case 2:
bool is_test_string(std::string const& str)
{
char const* compare_with = "test_string";
boost::algorithm::is_iequal comparator;
return comparator(str, compare_with);
}
Case 3:
bool is_test_string(std::string const& str)
{
boost::algorithm::is_iequal comparator;
return comparator(str, "test_string");
}
In all 3 cases I receive compiler erros.
Many thanks,
Ovanes
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net