summaryrefslogtreecommitdiffstats
path: root/src/codegen.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/codegen.hpp')
-rw-r--r--src/codegen.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.hpp b/src/codegen.hpp
index 7dbfd77..1274346 100644
--- a/src/codegen.hpp
+++ b/src/codegen.hpp
@@ -72,7 +72,7 @@ public:
}
void add_arg(const std::string &str, const std::string &name, bool func = false) {
- add_arg(std::make_pair(str, name), func);
+ add_arg({str, name}, func);
}
function_t(const std::string &type, const std::string &name) : type_name({type + ' ' + name, name}, true) {}