[C++-sig] Re: Extracting C++ objects: documentation example fails.

David Abrahams dave at boost-consulting.com
Sun Oct 26 20:14:37 CET 2003


Joel Gerard <llywelyn.geo at yahoo.com> writes:

> Nevermind. I've seen the answer in a different post.
>
> http://mail.python.org/pipermail/c++-sig/2003-September/005510.html
>
> I think the documentation could benefit from this piece of information
> though.  It seems unusual to me that ANSI C++ leaves the ()
> off. Really?  It seems more logical that they appear.

ANSI C++ doesn't "leave them off".  If you look at the reference
documentation for extract you'll see that there's an implicit
conversion operator which makes them unneccessary.  There's also a bug
in your compiler which makes the implicit conversion operator fail to
work under some circumstances.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list