|
Boost Users : |
From: Jon Agiato (JonAgiato_at_[hidden])
Date: 2003-01-01 13:27:22
----- Original Message -----
From: David Abrahams
To: boost-users_at_[hidden]
Sent: Wednesday, January 01, 2003 10:33 AM
Subject: [Boost-Users] Re: Error in testing tuple
"agiatojon <JonAgiato_at_[hidden]>" <JonAgiato_at_[hidden]> 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_operators
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_at_[hidden] * 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_at_[hidden]
[Non-text portions of this message have been removed]
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