Error in testing tuple
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:
/**
* tupleTest.cpp
* Test of Boost library class tuple
* A tuple is a fixed size collection of elements
* Stored objects may be of different types
* Current support of tuples with 0-10 objects
* Objects may be any valid C++ type except void and function types
* Jon Agiato
* 12-23-02
*/
#include <iostream>
using std::cout;
using std::cin;
using std::ostream;
using std::cerr;
#include <cstdlib>
#include
"agiatojon
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 testTuple; cout << testTuple << '\n';
tuple 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
----- 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
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 testTuple; cout << testTuple << '\n';
tuple 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]
participants (3)
-
agiatojon <JonAgiato@nyc.rr.com>
-
David Abrahams
-
Jon Agiato