Searched for this everywhere and fin开发者_StackOverflow中文版ally came here. I have a CORBA::WString_var as input parameter to my function. How do I know if it's empty?
I think you need to consult your ORB vendor's documentation. If your ORB maps CORBA::WChar
to std::wchar_t
, then you can use the techniques in this answer.
It is a long time ago. But if I remember correctly you can cast the WString_var to a WCHAR* and check this for NULL.
Use variable.in() to get the pointer to the CORBA::WChar array, than you can check that
精彩评论