I have C++ code that uses
int nthreads = thread::hardware_concurrency();
When I try to build my application on some computers, I get the error message
error: 'thread' has not been declared
I do not ask how to solve the error. I'm more interested in if there is a special "guard" that I can use to simply remove the lines of code by the preprocessor like for example in OpenMP I can use:
#ifdef _OPENMP
...
#endif