5
나는 다음과 같은 컴파일 오류가 얻을 :std :: list에 boost :: function을 저장할 수없는 이유는 무엇입니까?
여기error: expected `;' before 'it'"
내 코드는 다음과 같습니다
#include <boost/function.hpp>
#include <list>
template< class T >
void example() {
std::list< boost::function<T()> >::iterator it;
}
왜 이런 일이 발생합니까? 어떻게 해결할 수 있습니까?