
8 May
2008
8 May
'08
5:02 p.m.
[Boost.Python] Anybody have a suggestion for the best way to expose a class's member function that accepts const wchar_t* as an argument, or returns a const wchar_t*? I'm trying to find a way to do it that does not involve writing a thin wrapper function around each of my member functions that convert to/from std:wstring or something. If it balloons up into 100 functions that interact with const wchar_t*, that's a pretty big handful of tiny wrapper functions. I apologize if this is a dumb question, but I haven't found any useful info. It all works implicitly for const char*. Any ideas? Thanks, Dan Fike