Peter Oliphant on Wed, 5 May 2004 19:01:32 -0500 (CDT) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [ALACPP] const char* NULL to std::string api |
Hi Gavin!
Long time no talk to!
![]() Anyway, I will throw out my weird solution (which might not work), and then
you can do the same...hehe
How about:
void doFoo(const void *param)
{
if isStringRef( param ) // this may not be
possible, killing solution
{
// treat as param const
string&
return;
}
if isCharPtr( param ) // this may not be possible, killing
solution
{
// treat as const char*
return;
}
// error
}
My two cents...
![]() [==P==]
|
_______________________________________________ alacpp mailing list alacpp@xxxxxxxxxxx http://lists.ellipsis.cx/mailman/listinfo/alacpp