Boost logo

Boost Users :

From: Jaakko Jarvi (jajarvi_at_[hidden])
Date: 2003-08-12 11:25:44


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.
>
>
>
>


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