program_options problem on platforms with incomplete wchar_t

Hello, Looking at program_options headers, it does not appear to guard against BOOST_NO_STD_WSTRING being defined? This poses a problem when using gcc on platforms such as Solaris, HP-UX, as functions like std::codecvt<wchar_t, char, __mbstate_t>::do_length(...) are not defined in the libstdc++. Is this a know problem, should I come up with a patch, or what? Regards, Harri Pasanen This message, including any attachments, is intended only for the person(s) to whom it is addressed. If you received it in error, please let us know and delete the message from your system. This message may be confidential and may fall under the duty of non-disclosure. Any use by others than the intended addressee is prohibited. Trema shall not be liable for any damage related to the electronic transmission of this message, such as failure or delay of its delivery, interception or manipulation by third parties, or transmission of viruses or other malicious code. This message, including any attachments, is intended only for the person(s) to whom it is addressed. If you received it in error, please let us know and delete the message from your system. This message may be confidential and may fall under the duty of non-disclosure. Any use by others than the intended addressee is prohibited. Trema shall not be liable for any damage related to the electronic transmission of this message, such as failure or delay of its delivery, interception or manipulation by third parties, or transmission of viruses or other malicious code.

Hi Harri,
Looking at program_options headers, it does not appear to guard against BOOST_NO_STD_WSTRING being defined?
Hmm... there's a lot of #ifdef BOOST_NO_STD_WSTRING in the current CVS version. Do you use that version?
This poses a problem when using gcc on platforms such as Solaris, HP-UX, as functions like std::codecvt<wchar_t, char, __mbstate_t>::do_length(...) are not defined in the libstdc++.
Is this a know problem, should I come up with a patch, or what?
If you're using CVS version, and run into a problem which proper #ifdef will fix, I'd appreciate if you send a patch. I have no access to Solaris or HP-UX, so I have to rely on user's help. Thanks, Volodya
participants (2)
-
Harri Pasanen
-
Vladimir Prus