title: 3 IntelliSense: declaration is incompatible with "<error-type> Airport::getDetails(std::string)"
body: <p>recieving this error</p>
  
  <p>i know its something to do with declaration and definition mis-match but i cant seem to put my finger on it.</p>
  
  <p>Any help would be appreciated :)</p>
  
  <pre><code>IntelliSense: declaration is incompatible with "&lt;error-type&gt; 
  Airport::getDetails(std::string)" (declared at line 16 of "z:\documents\visual studio 2010\projects\oo_cw\oo_cw\Airport.h") 
  z:\documents\visual studio 2010\projects\oo_cw\oo_cw\airport.cpp    50  22  OO_CW
  </code></pre>
  
  <p>Heres my header file and cpp file</p>
  
  <p>header </p>
  
  <pre><code>#pragma once
  #include &lt;string&gt;
  #include "std_lib_facilities.h"
  
  
  class Airport
  {
  public:
  Airport();
  ~Airport(void);
  //Modifiers
  void setName(string);
  void addConnection(string,double,double);
  void setTax(double);
  //Accessors
  string getName();
  connections getDetails(string) const ;
  double getTax();
  
  private:
  string name;
  Vector&lt;connections&gt; destinations;
  double tax;
  };
  </code></pre>
  
  <p>cpp</p>
  
  <pre><code>#include "Airport.h"
  #include &lt;string&gt;
  #include "std_lib_facilities.h"
  using namespace std;
  
  struct connections {
      string destName;
      double price;
      double time;
  };
  
  Airport::Airport()
  {
  name = "";
  tax = 0.0;
  
  };
  
  
  
  
  Airport::~Airport(void)
  {
  };
  
  void Airport::setName(string airportName){
  Airport::name = airportName;
  }
  void Airport::setTax(double airportTax){
  tax = airportTax;
  }
  
  void Airport::addConnection(string conName, double conPrice, double conTime){
  connections newConnection;
  newConnection.destName = conName;
  newConnection.price = conPrice;
  newConnection.time = conTime;
  destinations.push_back(newConnection);
  }
  
  string Airport::getName(){
  return name;
  }
  
  double Airport::getTax(){
  return tax;
  }
  
  connections Airport::getDetails(string reqName) const {
  for(int i =0;i&lt;destinations.size();i++){
      if(destinations[i].destName==reqName){
          return destinations[i];
      }
  }
  }
  </code></pre>