
----- Original Message ----- From: David Abrahams To: boost-users@yahoogroups.com Sent: Wednesday, January 01, 2003 10:33 AM Subject: [Boost-Users] Re: Error in testing tuple "agiatojon <JonAgiato@nyc.rr.com>" <JonAgiato@nyc.rr.com> writes:
Happy Holidays to everyone! I am getting aquainted with the tuple class but am encountering the following error:
c:\BGL\boost_1_29_0\boost\tuple\tuple_comparison.hpp(119): error C2027: use of undefined type 'boost::STATIC_ASSERTION_FAILURE<x>' with [ x=false ]
with the following program: <snip>
tuple<A, B, C> testTuple; cout << testTuple << '\n';
tuple<B, A> test2Tuple; if(testTuple == test2Tuple)
http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#relational_operat... says: "Note that an attempt to compare two tuples of different lengths results in a compile time error." P.S. When posting code, turn tabs into spaces if you want indentation to be preserved. -- David Abrahams dave@boost-consulting.com * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution Thanks David, I guess I didn't see that as I was testing the use of tuple_comparison and thought that was a natural first test. Have a good one. Jon Agiato JonAgiato@nyc.rr.com [Non-text portions of this message have been removed]