[C++-sig] Issue with str()

David Abrahams dave at boost-consulting.com
Tue Aug 20 02:52:50 CEST 2002

We have a naming conflict: the str() function used in
boost/python/operators.hpp to automatically define an extension class'
__str__ method is (obviously) not the same as the str class available in
boost/python/str.hpp. While the str() function is in a nested namespace
(self_ns) and can be accessed explicitly, that fact was never meant to be
exposed to users.


    1. rename class str to class string
    2. rename str() to str_()
    3. expose self_ns to users
    4. Something else?

I lean towards #2. Opinions?

           David Abrahams * Boost Consulting
dave at boost-consulting.com * http://www.boost-consulting.com

More information about the Cplusplus-sig mailing list