Boost logo

Boost Users :

From: Markus Werle (numerical.simulation_at_[hidden])
Date: 2008-08-20 09:25:15


Markus Werle <numerical.simulation <at> web.de> writes:

> Is it hard work and/or useful to make this compile?
>
> ---snip----
> #include <boost/tr1/tuple.hpp>
> #include <boost/tuple/tuple.hpp>
>
> #include <string>
> #include <list>
>
> int main(int argc, char* argv[])
> {
> typedef std::list<std::tr1::tuple<int, std::string> > list_t;
> typedef std::list<boost::tuple<int, std::string> > b_list_t;
>
> b_list_t bl;
> list_t l = bl;
>
> return 0;
> }

Ooops!

Now it is me copyying the wrong stuff, sorry:

int main(int argc, char* argv[])
{
        typedef std::tr1::tuple<int, std::string> tr1_t;
        typedef boost::tuple<int, std::string> b_t;

        tr1_t t;
        b_t t1 = t;

        return 0;
}


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