Closed Pospelove closed 2 years ago
In skymp5-server/cpp/lib_espm/espm.h:
skymp5-server/cpp/lib_espm/espm.h
class WEAP : public RecordHeader { public: static constexpr auto type = "WEAP";
Currently, we need to write record type names twice: as a class name and as a const string. We need to determine static constexpr auto type automatically.
static constexpr auto type
Useful links: https://github.com/Neargye/nameof https://stackoverflow.com/questions/1666802/is-there-a-class-macro-in-c
no activity. closing
In
skymp5-server/cpp/lib_espm/espm.h
:Currently, we need to write record type names twice: as a class name and as a const string. We need to determine
static constexpr auto type
automatically.Useful links: https://github.com/Neargye/nameof https://stackoverflow.com/questions/1666802/is-there-a-class-macro-in-c