Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2003-01-01 10:33:38


"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

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