[C++-sig] Re: pyste and operator*

David Abrahams dave at boost-consulting.com
Tue Nov 9 16:29:50 CET 2004


Roman Yakovenko <roman.yakovenko at gmail.com> writes:

>>         class const_iterator
>>         {
>> 
>>         public:
>>             const_iterator() {}
>>             const vertex_type& operator*() const { return m_vertex; }
>
> This operation is meaningless \doesn't exis in python. If  you still
> want to expose
> it - expose it as regular function

On the other hand there ought to be some way to get pyste to expose
C++ iterators as Python iterators.  See
http://www.boost.org/libs/python/doc/v2/iterator.html

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com




More information about the Cplusplus-sig mailing list