Boost logo

Boost :

From: williamkempf_at_[hidden]
Date: 2001-09-25 09:06:40


--- In boost_at_y..., "Peter Dimov" <pdimov_at_m...> wrote:
> From: <williamkempf_at_h...>
> > --- 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;
>
> ;-)

Effectively no different then the proposed definition. I don't care
how it's implemented, I'm asking if we want the functionality added
to config or some other header for general use by Boost developers.

Bill Kempf


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