Closed ajaypanyala closed 6 years ago
does not provide the <any>
header? Or header exists but no contents? according to https://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.2017 <any>
should exist and be functional as of 7.1
One thing I noticed is #include <any>
is missing in libint2/util/any.h
when __cplusplus >= 201703L
This is what I had to do in libint2/util/any.h
to get it to compile:
#if __cplusplus >= 201703L
#include <any>
#endif
namespace libint2 {
// use C++17 std::any, if available
#if __cplusplus >= 201703L
using std::any;
using std::any_cast;
using std::bad_any_cast;
#else
...
this issue had been fixed in 2.5.0-beta.1 via https://github.com/evaleev/libint/pull/96
Compiling
tests/hartree_fock.cc
with a C++ 17 compiler (with-std=c++1z
enabled) results in compile errors attachedCompile cmd:
g++ -c -std=c++1z -c hartree-fock.cc -I/opt/libint/include -I/opt/eigen3