Re: [gtkmm] Glib::Unicode::toupper can't be used the same way as toupper



>> Morten Brix Pedersen <morten wtf dk> writes:

 > I tried the same thing with Glib::ustring and it's toupper function:
 > 
 >     std::transform(str.begin(), str.end(), str.begin(), Glib::Unicode::toupper);

 It works here:

$ cat test.cc
#include <glibmm/unicode.h>
#include <algorithm>
#include <string>

int main(int argc, char* argv[])
{
    std::string str;
    std::transform(str.begin(), str.end(), str.begin(), Glib::Unicode::toupper);

    return 0;
}
$ g++-3.1 -Wall -w -c `pkg-config --cflags gtkmm-2.0` test.cc
$

 > However, gcc 3.1 fails with:

g++-3.1 (GCC) 3.1.1 20020703 (Debian prerelease)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-- 
Marcelo



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]