This showed up on the Python C++-sig. I think it's an issue with addressof()
--- Begin Message ---
Hello c++-sig,
I'm exporting c++ class nested in other c++ class:
/////////////
struct C{
struct N{};
};
BOOST_PYTHON_MODULE(hello)
{
class_<C::N>("C.N");
}
/////////////
and getting this error message:
C:\Tools\boost_1_29_0\boost\utility\addressof.hpp(26) : error C2440: 'return' : cannot
convert from 'const C::N *' to 'C::N *'
Conversion loses qualifiers
What is fun that in addressof.hpp there's a comment:
// Do not make addressof() inline. Breaks MSVC 7. (Peter Dimov)
Strange, isn't it?
Best regards,
Kerim mailto:[EMAIL PROTECTED]
_______________________________________________
C++-sig mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/c++-sig
--- End Message ---
--
David Abrahams
[EMAIL PROTECTED] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost