[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cctype and locale
From: |
Erik Sigra |
Subject: |
cctype and locale |
Date: |
Sun, 16 Sep 2001 17:10:10 +0200 |
Hello,
i read in my C++ book (The C++ Programming Language) that there is a function
template <class Ch> bool isalpha(Ch c, const locale& loc);
Then I tried this with g++ 2.95.3:
#include <cctype>
int main() {
locale loc("");
return isalpha('a', loc);
}
The result was this:
$ gcc localetest.cc
localetest.cc:5: macro `isalpha' used with too many (2) args
What is wrong?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- cctype and locale,
Erik Sigra <=