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] *
Boost support, enhancements, training, and commercial distribution

Boost list run by bdawes at, gregod at, cpdaniel at, john at