T
Travis
I'm using the compare libraries for the first time (http://
www.boost.org/doc/html/string_algo/reference.html#header.boost.algorithm.string.compare.hpp).
I guess I'm not including the right thing because I can't get certain
functions to work.
This works....
#include <iomanip>
#include <iostream>
#include <string>
#include <boost/algorithm/string/compare.hpp>
using namespace std;
using namespace boost;
boost::is_equal IsEqual;
int main()
{
// inital output
string First;
string Second;
cout << "String 1: ";
cin >> First;
cout << "String 2: ";
cin >> Second;
string IsEqualResult = IsEqual(First,Second) ? "yes" : "no";
cout << "IsEqual = " << IsEqualResult << endl;
return 0;
}
But changing it to use boost::is_iequal, boost::is_less, etc. doesn't
seem to compile. I'm not sure what I'm missing from the documentation,
I think I'm including everything necessary.
www.boost.org/doc/html/string_algo/reference.html#header.boost.algorithm.string.compare.hpp).
I guess I'm not including the right thing because I can't get certain
functions to work.
This works....
#include <iomanip>
#include <iostream>
#include <string>
#include <boost/algorithm/string/compare.hpp>
using namespace std;
using namespace boost;
boost::is_equal IsEqual;
int main()
{
// inital output
string First;
string Second;
cout << "String 1: ";
cin >> First;
cout << "String 2: ";
cin >> Second;
string IsEqualResult = IsEqual(First,Second) ? "yes" : "no";
cout << "IsEqual = " << IsEqualResult << endl;
return 0;
}
But changing it to use boost::is_iequal, boost::is_less, etc. doesn't
seem to compile. I'm not sure what I'm missing from the documentation,
I think I'm including everything necessary.