0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 15:04:10 +01:00

ircd::mods: Fix reference to temporary (GCC).

This commit is contained in:
Jason Volk 2022-07-27 15:10:38 -07:00
parent 05a776dd51
commit 5506335502

View file

@ -52,10 +52,10 @@ ircd::mods::mod
string_view &operator[](const string_view &s);
// Convenience accessors
auto &name() const { return _name; }
auto &location() const { return _location; }
auto &version() const { return header->version; }
auto &description() const { return (*this)["description"]; }
auto &name() const { return _name; }
auto &location() const { return _location; }
auto &description() const { return (*this)["description"]; }
auto version() const { return header->version; }
explicit mod(std::string path, const load_mode::type &);