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