
4 Apr
2005
4 Apr
'05
9:39 p.m.
Yutaka Leon Suematsu wrote:
Dear booster,
I have a question related to enable_if. I would like to enable or disable some member functions from a template class, but enable_if is -not enable- to do it :-)
The usual way to do this, since enable_if is not applicable, is to implement the function in an optional base class, and use mpl::if or eval_if to derive from the base only if you want the function enabled. Jonathan