相关疑难解决方法(0)

为什么typedef中有这么多错误?

由此:

   // parts of c++0x std
    #include <boost/bind.hpp> 
    #include <boost/function.hpp>

    #ifndef _IGraphElement_h_
    #define _IGraphElement_h_

    using namespace std ;
    template <typename DataType >
    class IGraphElement : public IGraphElementBase{

        typedef boost::function<void(DataType)>   Function;
        typedef std::vector<Function>      FunctionSequence;  // (line *)
        typedef FunctionSequence::iterator FunctionIterator; // (line **)
//...
};
Run Code Online (Sandbox Code Playgroud)

我同时在线上获得C2146和C4430!(如何解决这个问题?

c++ boost visual-studio-2008 visual-studio

2
推荐指数
1
解决办法
130
查看次数

标签 统计

boost ×1

c++ ×1

visual-studio ×1

visual-studio-2008 ×1