Re: DSEL syntax, or opening the can of worms.

John Moeller <[email protected]>
Newsgroups gmane.comp.lib.boost.langbinding
Message-ID <[email protected]>
David Abrahams wrote:
> on Wed Aug 08 2007, Daniel Wallin <daniel-AT-boost-consulting.com> wrote:
> 
>> My point is that in:
>>
>>   class_<X>() [
>>      def(..., &X::f); #1
>>   ]
>>
>> #1 needs access to `X` from the enclosing class_<>. 
> 
> Right.  It may not be entirely obvious why at first, but if you look
> at the Boost.Python code that handles this, you'll see it.  X::f might
> actually be declared in a (non-exposed) base class of X, in which case
> the type of its address doesn't actually have any way to deduce X at
> all.

Ah, ok.  That makes sense.

-- 

John Moeller
[email protected]


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.