We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8304aaa commit 734101dCopy full SHA for 734101d
src/utils/mknix.cc
@@ -152,7 +152,7 @@ nix::Value mx_to_value_from_struct(const mxArray *arr) {
152
case 3: val.encoder = mx_to_str(field_array_ptr); break;
153
case 4: val.filename = mx_to_str(field_array_ptr); break;
154
case 5: val.reference = mx_to_str(field_array_ptr); break;
155
- default: throw std::invalid_argument(strcat("Field is not supported: ", field_name));
+ default: throw std::invalid_argument(std::string("Field is not supported: ") + std::string(field_name));
156
}
157
158
@@ -188,4 +188,4 @@ std::vector<nix::Value> mx_to_values(const mxArray *arr) {
188
189
190
return vals;
191
-}
+}
0 commit comments