|
Boost : |
From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2006-10-18 07:50:10
John Maddock wrote:
> The following patch clears the failures with the Borland compiler for the
> program options lib. Is this OK to commit or was there a specific reason
> why those functions were declared outside the class body? It shouldn't make
> any difference either which way, but you never know :-)
No idea about the functionality of the patch, but you seem to have killed a
special comment indicator.
[snip]
> - template<class T> const T& as() const;
> -
> - /** @overload */
-----------^^^^^^^^^^^^^^^^
> - template<class T> T& as();
> + template<class T>
> + const T& as() const {
> + return boost::any_cast<const T&>(v);
> + }
> + // overload:
> + template<class T>
> + T& as() {
> + return boost::any_cast<T&>(v);
> + }
[snip]
Markus
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk