title: Getting Vim to syntax-check boost libraries
body: <p>I am a fairly novice programmer who recently started using boost. After successfully linking the libraries with cmake, I have noticed that my vim (syntastic plugin I think) which does a great job at highlighting syntax errors. But ever since i started including boost libraries, it just stops at the #include statement with (no such file / directory ) and fails to show up any syntax errors whatsoever in the rest of the file. I have search all over the place but I am unable to find a workaround which allows me to syntax check bad code prior to the compilation stage. any help will be appreciated.
  I am unable to post screenshots (too low rating) but will post code for whatever it is worth</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;boost/regex.hpp&gt;     &lt;--------------syntax error (though it compiles fine)
  #include &lt;algorithm&gt;
  
  using namespace std;
  
  void testMatch(const boost::regex&amp; ex,const string st){
    cout&lt;&lt;"Matching" &lt;&lt;st &lt;&lt;endl;
    if(boost::regex_match(ex,st)){
      cout&lt;&lt;"matches"&lt;&lt;endl
    }
    else cout&lt;&lt;"oops"; }
  
    void testSearch(const boost::regex&amp; ex, const string st){
      cout&lt;&lt;"Searching"&lt;&lt;endl;
  
  
  
  
  
    }
  </code></pre>