Commit 788862df32c6fdc5881814694a3235e833c6fff9

Authored by Tianshu Cheng
1 parent 912d9073

added a BOOST_PRECOMPILED preprocessor flag to filename.h

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
stim/parser/filename.h
... ... @@ -19,8 +19,9 @@
19 19 #include <algorithm>
20 20  
21 21 #include "../parser/parser.h"
22   -
  22 +#ifdef BOOST_PRECOMPILED
23 23 #include <boost/filesystem.hpp>
  24 +#endif
24 25  
25 26 namespace stim{
26 27  
... ... @@ -154,6 +155,7 @@ public:
154 155  
155 156 return ss.str();
156 157 }
  158 +#ifdef BOOST_PRECOMPILED
157 159  
158 160 //get a list of files matching the current template
159 161 std::vector<stim::filename> get_list(){
... ... @@ -193,7 +195,7 @@ public:
193 195  
194 196 return file_list;
195 197 }
196   -
  198 +#endif
197 199 //gets the current working directory
198 200 static stim::filename cwd(){
199 201  
... ...