#include <vector>
#include <string>
struct BasePluginInfo
{
bool bHasGui, bIsSynth;
char cType;
std::string sCategory, sSdkVersion, sVendor, sVersion;
};
struct PluginClassInfo
{
std::string sName, sUid;
std::vector<std::string> vsParamNames;
};
struct ShellPluginInfo : BasePluginInfo
{
std::vector<PluginClassInfo> vciClasses;
};
When I do
int main() {
ShellPluginInfo
{
.bHasGui = true
};
}
The compiler complains that ShellPluginInfo has no field 'bHasGui'.
However this works:
int main() {
ShellPluginInfo info;
info.bHasGui = true;
}