Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Time.cpp: include <cmath> Time.cpp uses `std::round` from <cmath>. When SLANG_USE_BOOST is on, cmath is pulled in somehow from a transitive include. When SLANG_USE_BOOST is off, at least on some systems, this include is not pulled in. Include <cmath> explicitly in Time.cpp to ensure `std::round` is available, including for certain non-boost-using builds. * pyslang.h: guard type_casters for flat_hash_map based on SLANG_USE_BOOST include/slang/util/Hash.h defines the alias templates `flat_hash_map` and `flat_hash_set` based on the macro SLANG_USE_BOOST. If the macro is defined, these aliases refer to boost class templates. If the macro is not defined, they reference standard class templates. Pybind11 v2.10.4 defines type_casters for `std::unordered_map` and `std::unordered_set` in include/pybind11/stl.h on lines 302-304 and 294-296, respectively. As pyslang.h includes <pybind11/stl.h>, avoid multiple definitions of these type casters by guarding their definitions in pyslang.h based on the SLANG_USE_BOOST macro.
- Loading branch information