void ParamSet::AddTexture(const std::string &name, const std::string &value) { EraseTexture(name); std::unique_ptr<std::string[]> str(new std::string[1]); str[0] = value; std::shared_ptr<ParamSetItem<std::string>> psi( new ParamSetItem<std::string>(name, std::move(str), 1)); textures.push_back(psi); }
void ParamSet::AddTexture(const string &name, const string &value) { EraseTexture(name); textures.push_back(new ParamSetItem<string>(name, (string *)&value, 1)); }
void ParamSet::AddTexture(const std::string &name, const std::string &value) { EraseTexture(name); std::shared_ptr<ParamSetItem<std::string>> psi( new ParamSetItem<std::string>(name, (std::string *)&value, 1)); textures.push_back(psi); }