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

Bug#144409: g++-3.0: does not support transform(begin,end,begin,tolower) idiom



Package: g++-3.0
Version: 1:3.0.4-7
Severity: normal

the code below is from Josuttis' "The C++ standard library" and I have seen it
elsewhere.  It works under 2.95.4.

#include <string>
#include <algorithm>
#include <cctype>
#include <iostream>
using namespace std;

int main(int argc, char* argv[]) {
    string foo = "Some Mixed Case Text";
    cout << foo << endl;
    transform(foo.begin(), foo.end(), foo.begin(), tolower);
    cout << foo << endl;

    exit(0);
}

The problem seems to be the second use of foo.begin().

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux one 2.4.18 #1 Sat Mar 9 08:43:28 PST 2002 i686
Locale: LANG=C, LC_CTYPE=en_US

Versions of packages g++-3.0 depends on:
ii  gcc-3.0                       1:3.0.4-7  The GNU C compiler.
ii  gcc-3.0-base                  1:3.0.4-7  The GNU Compiler Collection (base 
ii  libc6                         2.2.5-4    GNU C Library: Shared libraries an
ii  libstdc++3-dev                1:3.0.4-7  The GNU stdc++ library version 3 (



-- 
To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: