【发布时间】:2013-08-22 04:05:55
【问题描述】:
我有一个问题在 XCode 中没有重新出现(甚至没有警告),但允许我在 Keil MDK 中编译。
void grammar::parse(std::string &_expr) {
std::transform(_expr.begin(), _expr.end(), _expr.begin(), std::tolower);
_expr.erase(std::remove_if(_expr.begin(), _expr.end(), std::isspace), _expr.end());
}
这就是我得到的
错误:#304:没有重载函数“std::transform”的实例与参数列表匹配 错误:#304:没有函数模板“std::remove_if”的实例与参数列表匹配
包含的标题:
#include <iostream>
#include <sstream>
#include <iomanip>
#include <cmath>
#include <stdlib.h>
#include <math.h>
#include <ctype.h>
#include <stdio.h>
#include <algorithm>
你能告诉我在哪里看吗?我很惊讶 XCode 版本按预期工作......
【问题讨论】:
标签: c++ compiler-errors arm keil