|
Boost : |
From: Gernot Neppert (gn_at_[hidden])
Date: 2000-09-04 08:02:24
Here's an alternative implementation for method "to_ptr" which might
be faster:
template<typename ValueType>
ValueType * to_ptr()
{
holder<ValueType>* const hld =
dynamic_cast<holder<ValueType>*>(content);
return hld ? &hld -> held : 0;
}
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk