Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: calling
hasInteraction()
though an instance is not constexpr
* clang identified the call to `hasInteraction()` as not being a constant expression. * `Hamiltonian::hasInteraction()` being a `constexpr` static member function might not be a constant expression when invoked through an instance of a `Hamiltonian` object. Accessing it through the type by using `decltype` is guaranteed to work.
- Loading branch information