
12 Mar
2011
12 Mar
'11
11:35 a.m.
At Thu, 10 Mar 2011 09:33:27 +1100, Allan Johns wrote:
Hello,
Given a boost::python object, how can I the difference between that object containing a string, or a sequence of length 1 whos zeroeth element is a string? Ie:
"foo" --vs-- ["foo"]
bp::extract<std::string> succeeds in both cases.
I'm shocked. Really? Can you show the code? -- Dave Abrahams BoostPro Computing http://www.boostpro.com