【发布时间】:2008-11-11 11:29:17
【问题描述】:
我收到以下编译错误:
error: expected `;' before 'it'"
这是我的代码:
#include <boost/function.hpp>
#include <list>
template< class T >
void example() {
std::list< boost::function<T ()> >::iterator it;
}
为什么会这样?我该如何解决?
【问题讨论】: