
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