skip to Main Content

Ubuntu – Add struct to vector: "no matching constructor for initialization" error when compiling on macos

I'm using emplace_back to add structs to a std::vector as follows: struct ConfigurableShaderParameter { std::string variableName; std::string description; float defaultValue; float min; float max; float step; float value; }; std::vector<ConfigurableShaderParameter> parameters; std::string variableName, description; float defaultValue, min, max, step; //…

VIEW QUESTION
Back To Top
Search