Boost logo

Boost Users :

From: Victor A. Wagner Jr. (vawjr_at_[hidden])
Date: 2005-01-23 13:59:01


At Saturday 2005-01-22 08:22, you 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();

this declares a function named t which takes no arguments and returns a
tuple<int> it does NOT define a variable named t.

> cout<<t;
>make a link error.
>I'm using
>vs.net2003__________________________________________________________________欢迎使用ACMAIL
>邮件系统
>
>
>
>_______________________________________________
>Boost-users mailing list
>Boost-users_at_[hidden]
>http://lists.boost.org/mailman/listinfo.cgi/boost-users

Victor A. Wagner Jr. http://rudbek.com
The five most dangerous words in the English language:
               "There oughta be a law"


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