You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Building Geant4 version on windows imports minmax macros from windows.h when using 2021.6.0 version of tbb on visual studio 16.11.1, which breaks code in PTL that uses std::min and std::max (e.g. in ThreadPool.hh line 468 in function void ThreadPool::execute_on_all_threads(FuncT&& _func)).
To Reproduce
Description contains reproduction details.
Expected behavior
Normal compilation.
Screenshots
non
Putting this block (or NOMINMAX) somewhere in the code should solve the problem. Still locating the include location.
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#endif
The text was updated successfully, but these errors were encountered:
Describe the bug
Building Geant4 version on windows imports
min
max
macros fromwindows.h
when using2021.6.0
version oftbb
on visual studio16.11.1
, which breaks code inPTL
that usesstd::min
andstd::max
(e.g. inThreadPool.hh
line468
in functionvoid ThreadPool::execute_on_all_threads(FuncT&& _func)
).To Reproduce
Description contains reproduction details.
Expected behavior
Normal compilation.
Screenshots
non
Putting this block (or NOMINMAX) somewhere in the code should solve the problem. Still locating the include location.
The text was updated successfully, but these errors were encountered: