From ce23b5ca55a6be29e7942976c90a7fe04178af9f Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Thu, 12 Jul 2012 20:54:40 -0700 Subject: [PATCH] Moving the LatestTask typedef to Future.h --- cpp/ycm/Future.h | 5 +++++ cpp/ycm/IdentifierCompleter.h | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) 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 {