Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-01-09 03:44:43


Hi Tilman,

On Thursday 05 January 2006 14:57, you wrote:
> see src/program_options/winmain.cpp:
>
> #ifndef BOOST_NO_STD_WSTRING
> BOOST_PROGRAM_OPTIONS_DECL std::vector<std::wstring>
> split_winmain(const std::wstring& cmdline)
> {
> vector<wstring> result;
> vector<string> aux = split_winmain(to_internal(cmdline));
> --> for (unsigned i = 0, e = result.size(); i < e; ++i)
> result.push_back(from_utf8(aux[i]));
> return result;
> }
> #endif
>
> Correct ist (aux and not result!):
>
> for (unsigned i = 0, e = aux.size(); i < e; ++i)

You're right, the change is just committed. Thanks!

BTW, it's better to send proposed code changes to the Boost mailing list, so
that other users are aware.

Thanks,
Volodya


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk