Mass: make the constructor explicit.

Implicit initialisation from a std::string could be dangerous, so, let's
avoid that.
This commit is contained in:
Guillaume Jacquemin 2021-06-20 13:54:35 +02:00
parent e9d509fd36
commit a91546d8a5

View file

@ -24,7 +24,7 @@ enum class MassState : std::uint8_t {
class Mass {
public:
Mass(const std::string& filename);
explicit Mass(const std::string& filename);
Mass(const Mass&) = delete;
Mass& operator=(const Mass&) = delete;