latest oatch from Nathan Ridge

[SVN r79305]
This commit is contained in:
Joel de Guzman
2012-07-05 23:39:50 +00:00
parent 85583b5ea9
commit a3b0cad1e7
4 changed files with 67 additions and 0 deletions

View File

@ -67,6 +67,7 @@ main()
using namespace boost::fusion;
typedef ns::point<int, int> point;
typedef ns::point<std::string, std::string> name;
std::cout << tuple_open('[');
std::cout << tuple_close(']');
@ -106,6 +107,20 @@ main()
BOOST_TEST(v3 >= v2);
}
{
boost::fusion::vector<std::string, std::string> v1("Lincoln", "Abraham");
name v2("Roosevelt", "Franklin");
name v3("Roosevelt", "Theodore");
BOOST_TEST(v1 < v2);
BOOST_TEST(v1 <= v2);
BOOST_TEST(v2 > v1);
BOOST_TEST(v2 >= v1);
BOOST_TEST(v2 < v3);
BOOST_TEST(v2 <= v3);
BOOST_TEST(v3 > v2);
BOOST_TEST(v3 >= v2);
}
{
// conversion from point to vector
point p(5, 3);