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