From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-05-29 01:10:18
Misha Bergal wrote:
> "Vladimir Prus" <ghost_at_[hidden]> wrote in message
>> I think it's better to wait for Unicode users to formulate what's needed.
>> seems, for example, that the last approach would work better for me on
> Visual C++
> wmain( int argc, wchar_t* argv )
> std::wcout << L"Hello, world!"<< std::endl;
> std::wcout << ( boost::wformat( L"Hello, %s" ) % L"world" ).str() <<
> That's what I have, I am not sure I want the differrnt usage for
I understand, you want to use:
... parse_command_line(argc, argv, ... )
The important point is that you don't necessary need two
versions/specialization of program_options to do that. QT can handle both
Unicode and 8-bit string, because QString is unicode.
On Linix, you don't have 'wmain', so you'll have to write
int main(int argc, char** argv)
Now, if you have portable implementation of 'local8bit_to_wstring',
program_options can be implemented using wstring. The interface functions
would merely convert char* to wstring if needed and wchar_t* will be
supported without any effort.
> Unsubscribe & other changes:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk