diff --git a/cpp/ycm/Future.h b/cpp/ycm/Future.h index 26679c7b..3f31df7e 100644 --- a/cpp/ycm/Future.h +++ b/cpp/ycm/Future.h @@ -26,10 +26,15 @@ namespace YouCompleteMe { class Result; +template< typename T > class ConcurrentLatestValue; typedef boost::python::list Pylist; typedef boost::shared_ptr< std::vector< Result > > AsyncResults; +typedef ConcurrentLatestValue< + boost::shared_ptr< + boost::packaged_task< AsyncResults > > > LatestTask; + class Future { public: diff --git a/cpp/ycm/IdentifierCompleter.h b/cpp/ycm/IdentifierCompleter.h index 2028e0a9..7b649fa1 100644 --- a/cpp/ycm/IdentifierCompleter.h +++ b/cpp/ycm/IdentifierCompleter.h @@ -44,10 +44,6 @@ typedef boost::unordered_map< std::string, typedef boost::unordered_map< std::string, boost::shared_ptr< FilepathToCandidates > > FiletypeMap; -typedef ConcurrentLatestValue< - boost::shared_ptr< - boost::packaged_task< AsyncResults > > > LatestTask; - class IdentifierCompleter : boost::noncopyable {