Replacing a header file with a forward decl

This commit is contained in:
Strahinja Val Markovic 2012-07-11 22:10:37 -07:00
parent be0085aca9
commit dad2fc31bb

View File

@ -18,8 +18,6 @@
#ifndef COMPLETER_H_7AR4UGXE #ifndef COMPLETER_H_7AR4UGXE
#define COMPLETER_H_7AR4UGXE #define COMPLETER_H_7AR4UGXE
// TODO: can we remove the inclusion of Candidate.h now?
#include "Candidate.h"
#include "ConcurrentLatestValue.h" #include "ConcurrentLatestValue.h"
#include "Future.h" #include "Future.h"
@ -34,12 +32,9 @@
namespace YouCompleteMe namespace YouCompleteMe
{ {
class Candidate;
class CandidateRepository; class CandidateRepository;
// candidate text string -> candidate objects
// typedef boost::unordered_map< std::string, const Candidate* >
// CandidateRepository;
// filepath -> *( *candidate ) // filepath -> *( *candidate )
typedef boost::unordered_map< std::string, typedef boost::unordered_map< std::string,
boost::shared_ptr< std::list< const Candidate* > > > boost::shared_ptr< std::list< const Candidate* > > >