Hello, All! I can't compile this simple test: --------------------------------------------- #include <boost/tuple/tuple.hpp> #include <iostream> using namespace boost::tuples; using namespace std; int main() { typedef tuple<int, tuple<int, int> > Tuple; Tuple t1(1, make_tuple(1, 1)); Tuple t2(2, make_tuple(2, 2)); if (get<1>(t1) == get<1>(t2)) { cout << "equal"; } else { cout << " not equal"; } return 0; } ----------------------------------------- What am I doing wrong? Compilers: Borland Builder 6 (bcc32.exe 5.6.4) and VC7 With best regards, Konstantin M. Litvinenko aka Dark Angel.
In our last exciting episode "Konstantin M. Litvinenko" wrote: Reply is a bit late, but here's the fix: add #include <boost/tuple/tuple_comparison.hpp> Jaakko
Hello, All!
I can't compile this simple test:
--------------------------------------------- #include <boost/tuple/tuple.hpp> #include <iostream>
using namespace boost::tuples; using namespace std;
int main() {
typedef tuple<int, tuple<int, int> > Tuple;
Tuple t1(1, make_tuple(1, 1)); Tuple t2(2, make_tuple(2, 2));
if (get<1>(t1) == get<1>(t2)) { cout << "equal"; } else { cout << " not equal"; }
return 0; } -----------------------------------------
What am I doing wrong?
Compilers: Borland Builder 6 (bcc32.exe 5.6.4) and VC7
With best regards, Konstantin M. Litvinenko aka Dark Angel.
participants (2)
-
Jaakko Jarvi
-
Konstantin M. Litvinenko