Code: Select all
template<class F, class... Args>
static auto enqueue(F&& f, Args&&... args)
-> std::shared_ptr<boost::unique_future<typename std::result_of<F(Args...)>::type>>;
the errors are:
12>R:\springWIN\spring\rts\System/ThreadPool.h(95): error C2332: 'class' : missing tag name (..\..\Game\UI\ProfileDrawer.cpp)
12>R:\springWIN\spring\rts\System/ThreadPool.h(95): error C2993: '': illegal type for non-type template parameter '<unnamed-tag>' (..\..\Game\UI\ProfileDrawer.cpp)
12>R:\springWIN\spring\rts\System/ThreadPool.h(95): error C2143: syntax error: ',' missing before '...' (..\..\Game\UI\ProfileDrawer.cpp)
12>R:\springWIN\spring\rts\System/ThreadPool.h(96): error C2061: syntax error: identifier 'Args' (..\..\Game\UI\ProfileDrawer.cpp)
12>R:\springWIN\spring\rts\System/ThreadPool.h(97): error C2065: 'Args': undeclared identifier (..\..\Game\UI\ProfileDrawer.cpp)