dftlibs / xcfun

XCFun: A library of exchange-correlation functionals with arbitrary-order derivatives
https://dftlibs.org/xcfun/
Mozilla Public License 2.0
58 stars 32 forks source link

Compiler error brx.cpp #157

Closed levineds closed 2 years ago

levineds commented 2 years ago

With v2.1.1, I can compile without issue. With the current master, I crash with this error:

/xcfun/src/functionals/brx.cpp: In function ‘taylor BR_taylor(const T&)’: /xcfun/src/functionals/brx.cpp:54:26: error: expected ‘,’ before ‘)’ token static_assert(Ndeg >= 3); ^ /xcfun/src/functionals/brx.cpp:54:26: error: expected string-literal before ‘)’ token Using gcc/g++ 9.3.1 on Centos7
robertodr commented 2 years ago

My bad... static_assert needs a second arguments pre-C++17. Patch incoming