Boost logo

Boost :

From: Justin M. Lewis (boost_at_[hidden])
Date: 2003-04-23 12:33:39


That depends. At one point the out and in_out classes had assert checks
in them. c_out would check to make sure that it was assigned some value
inside the called function, for example. The other thing is, the idea
here is to force people CALLING your function (func) to show the world
what's going on by using the out or in_out function at the point func is
called. You'd also want totally separate types that can't be implicitly
cast from one to the other, since the point here is to make it clear at
the point func is called what is happening to the parameters that are
passed.

-----Original Message-----
From: boost-bounces_at_[hidden]
[mailto:boost-bounces_at_[hidden]] On Behalf Of Gennadiy Rozental
Sent: Wednesday, April 23, 2003 1:20 AM
To: boost_at_[hidden]
Subject: [boost] Re: class proposal

> void func(CRetVal<int> x){x = 1977;};

Basically boost::ref could be used for the same purpose, isn't it? Just
different name

Gennadiy.

_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk