阅读背景:

为什么在迭代时不能使用模板

来源:互联网 

When compiling :

编译时:

#include <vector>

template<class T> class foo {

    void bar() {
        std::vector<T> x;
        std::vector<T>::iterator i = x.begin();

    }
};


int main() {
    return 0;
}
#include <vector>

te



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: