Fix build error from non-POD initializer list

This commit is contained in:
2025-07-22 05:50:19 -04:00
parent f06aeb6c9b
commit e87656fd12
-7
View File
@@ -51,11 +51,6 @@ public:
class ExportedImplexorApiDesc class ExportedImplexorApiDesc
{ {
public: public:
ExportedImplexorApiDesc(const std::string name)
// The caller should sanity check before calling this constructor.
: name(name)
{}
static bool sanityCheck(const ExportedImplexorApiDesc &desc) static bool sanityCheck(const ExportedImplexorApiDesc &desc)
{ {
if (desc.name.empty()) { return false; } if (desc.name.empty()) { return false; }
@@ -67,8 +62,6 @@ public:
}; };
public: public:
SenseApiDesc() = default;
std::string stringify() const std::string stringify() const
{ {
std::string result = "Name: " + name + "\n"; std::string result = "Name: " + name + "\n";