Boost logo

Boost :

From: Justin M. Lewis (boost_at_[hidden])
Date: 2003-05-04 15:28:14


----- Original Message -----
From: "Noel Yap" <Noel.Yap_at_[hidden]>
To: "Boost mailing list" <boost_at_[hidden]>
Sent: Sunday, May 04, 2003 5:06 AM
Subject: Re: [boost] Re: in/out parameters, codingstylesandmaintenance

> "Justin M. Lewis" wrote:
> >
> > This is what I came up with real quick.
> >
> > http://groups.yahoo.com/group/boost/files/in_out/test1/
>
> I didn't see:
>
> void test_out2(c_out<int> i) // this shouldn't compile
> {
> int& j = i.get_ref( i );
> ++j; // using existing state of input
> }
>
> void test_in( c_in< int > i_ ) // this shouldn't compile
> {
> int& i = i_.get_ref( i );
> ++i; // changing existing state of input
> }
>

If that's what you've been thinking this whole time, then you've completely
missed the point. It's up to the programmer to properly uses these classes.
If they don't, well, what can anyone do about that?

> Noel
> _______________________________________________
> 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