March 11, 2003
3:39 p.m.
Dirk Gerrits <dirk@gerrits.homeip.net> writes:
As Dave mentioned, you need to use x.attr("__len__")(). Notice the *additional* pair of braces.
True, but that result is just an 'object'. He needs extract<std::size_t>(x.attr("__len__")()) to get a size_t out of it. -- Dave Abrahams Boost Consulting www.boost-consulting.com