Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-11-18 17:14:27


Rob Stewart <stewart_at_[hidden]> writes:

> When I read code that modifies the arguments, I find the code
> confusing as I can never know the value in that variable unless I
> inspect the entire function.

So make 'em const:

   void f(double const x, Foo const y) { ... }

-- 
                       David Abrahams
   dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

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