Boost logo

Boost :

From: Noel Yap (Noel.Yap_at_[hidden])
Date: 2003-05-04 07:06:59


"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
}

Noel


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