Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-09-25 08:13:08


From: <williamkempf_at_[hidden]>
> --- In boost_at_y..., John Maddock <John_Maddock_at_c...> wrote:
> >
> > Just a thought but whats wrong with:
> >
> > (void) parameter_name;
> >
> > which suppresses the warning and doesn't generate any code, even
> when
> > inline expansions are turned off in the compiler....
>
> Nothing other than readability. This doesn't document (within the
> code) anything, except to a very few with intimate knowledge of this
> trick *AND* who use it frequently.

typedef void ignore_unused_variable;

;-)

--
Peter Dimov
Multi Media Ltd.

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