[C++-sig] compilation problem with str

Alain Miniussi alain.miniussi at oca.eu
Tue May 12 16:44:27 CEST 2015


Hi,

In:
http://www.boost.org/doc/libs/1_58_0/libs/python/doc/tutorial/doc/html/python/exposing.html#python.class_operators_special_functions

It is explained how to automagicaly get a str conversion from the 
operator<<(ostream&,blog const*) operator.

But, as explained in 
http://stackoverflow.com/questions/2828903/build-problems-when-adding-str-method-to-boost-python-c-class

It only works if the following
   using self_ns::str;
directive is present.

Now, I do not see any mention of that issue in the documentation. Did I 
overlooked it ? Or is it actually missing in the doc ? (or is it a but 
in the lib ?).

Thanks,

-- 
---
Alain


More information about the Cplusplus-sig mailing list