I am working on my honors thesis and want to change my threading method from std::threads to include boost::threadpool. I am able to accomplish this easily by just doing a
#include "../include/threadpool.hpp"
within each of my files, but this becomes very repetitive with many files / changes to thread systems. Is there some way to give a compiler flag (or something else) so that all files natively #include that file?
My naive thought would be something like
//dependencies.h
#include "../include/threadpool.hpp"
#include //some other dependency I need.h
And pass a
-I "path_to_dependencies.h"
flag to compiler. Would something like this work or am I off base?
Thanks!
Aucun commentaire:
Enregistrer un commentaire