GCC extensions make my brain hurt :( Should just use C++ at that point:
template<class T>
bool is_space(const T & x) {
return x == ‘ ‘ || x == ‘\n’;
}