Boost logo

Boost :

From: Darin Adler (darin_at_[hidden])
Date: 2001-09-24 18:31:41

Discussing: template <class T> inline void unused_variable(const T&) { }

on 9/24/01 1:30 PM, williamkempf_at_[hidden] wrote:

> I currently have need of this for Boost.Threads, so... Any thoughts
> or comments on this?

Great idea.

I also encountered this in tuple/test/tuple_test_bench.cpp. It's named
"dummy" in there.

I like the name unused_variable.

I also seem some benefit, and little harm, in having another function
template called unused_variables that takes multiple parameters as suggested
by Fernando Cacciola.

    -- Darin

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