'isblank' identifier not found

Hey everyone,
I m trying to use the function isblank() that is supposedly defined within ctype.h. alternatively i include cctype, but still, visual studio tells me he doesnt find an identifiert for the function. the source is:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "Tokenizer.h"

#include <iostream>
#include <cmath>
#include <cctype>

using namespace std;

int Tokenizer::skipBlanks()
{
    while (isblank(cin.peek()))
        cin.ignore(1);

    return cin.peek();
}


any help would be greatly appreciated <3
It became standard in C++11 (and it is also standard in C since C99). Before that, it was not standard. Your compiler provider didn't provide it.
Last edited on
Is there a way to enable c++11 support in visual studio 2012 then?
any alternatives?
You could write the function yourself, it shouldn't be more than a couple of lines for a minimal version.
http://www.cplusplus.com/reference/clibrary/cctype/isblank/
Last edited on
Topic archived. No new replies allowed.