Displaying 1 result from an estimated 1 matches for "writabledatabase_set_metadata".
2011 Mar 11
2
int to string TypeError annoyance
Hi All,
In Perl,
$db->set_metadata( "foo", 10 );
Results in,
TypeError in method 'WritableDatabase_set_metadata', argument 3 of type
'std::string const &'
It looks like this is thrown by the SWIG
std::string typemap. Does someone with better SWIG skills than me know how
to fix SWIG such that it converts the int to a string rather than croaking?
(And besides that it's a very unhelpful...