LLNL / qball

Qball (also known as qb@ll) is a first-principles molecular dynamics code that is used to compute the electronic structure of atoms, molecules, solids, and liquids within the Density Functional Theory (DFT) formalism. It is a fork of the Qbox code by Francois Gygi.
GNU General Public License v3.0
45 stars 22 forks source link

disambiguate byte, colliding with new std::byte #45

Open correaa opened 9 months ago

correaa commented 9 months ago

std::byte is declared by the standard library now. Since qball uses using namespace std; everywhere, these name collisions happen.

The changes disambiguate the use of byte using ::byte.

I tested it with GCC 13 with no flags and with the "-std=c++11" flag (CXX="mpicxx -std=c++11).