[C++-sig] Type conversion problem -- simplified

David Abrahams dave at boost-consulting.com
Sat Nov 4 22:12:38 CET 2006


Randall Hopper <viznut at charter.net> writes:

> Roman Yakovenko:
>  |Randall Hopper;
>  |>      What do I need to do to tell boost::python to dereference a wrapped
>  |> C++ pointer before trying to invoke the C++ class instance's methods?
>  |
>  |I don't think anyone is able to follow you. 
>
> Thanks for the candid reply.  I thought I had a simple question, but I'll
> see what I can do about thining this down to a simple example.

This should be pretty simple.

> The problem is I'm trying to fix someone else's wrappers, and after hours
> reading the boost docs and playing with this problem, I don't understand
> the fundamentals of boost enough to "get under the hood" (dump the compiler
> output, and trace metaprogramming templates).  

Why in anyone's name would you want to do that?

> Despite the selling point, boost "does" require it's own
> metalanguage, and it's as confusing as hell to the newbie that needs
> to leave the yellow brick road of:
>
>    .def( "f", &f, "Hi mom" )
>
> I really do want to become skilled at boost, so I'd greatly
> appreciate it if you'd point me at 5-10 URLs to read in order (in
> case I haven't already read them).  As far as experience level, I'm
> an accomplished C++ programmer (15+ years), but I don't usually use
> templates to solve problems because in C++ they often obfuscate more
> than they simplify.  

I think you're scapegoating the technology; the information needed to
debug your problem was in your previous message; it has nothing to do
with metaprogramming or templates.

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




More information about the Cplusplus-sig mailing list