Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-01-23 06:16:36


heroboy wrote:
> hello everyone,
> &nbsp;&nbsp;&nbsp; what's the difference between "tuple<int>
> t;"&nbsp; and&nbsp;&nbsp;" tuple<int> t();" why
> tuple<int> t;
> cout<<t;
> is ok.
> But
> tuple<int> t();
> cout<<t;
> make a link error.

Because tuple<int> t(); is a function returning a tuple<int>.


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