[C++-sig] newbie question: returning a tuple of strings
Stefan Seefeld
seefeld at sympatico.ca
Thu May 24 17:36:17 CEST 2007
Nick Lee wrote:
> How do I write a C++ function that returns a tuple of strings to Python
> using Boost.Python? Is std::string the only string format that Boost.Python
> recognizes?
char const * should work just fine:
object result = make_tuple("first", "second", "third");
...
HTH,
Stefan
--
...ich hab' noch einen Koffer in Berlin...
More information about the Cplusplus-sig
mailing list