argument default json

This commit is contained in:
pantor committed 2018-02-18 18:59:24 +01:00
1 parent f931a95800
commit 98aed90e02
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -853,7 +853,7 @@ public:
renderer.map_callbacks[name] = callback;
}
template<typename T>
template<typename T = json>
T get_argument(Parsed::Arguments args, int index, json data) {
return renderer.eval_expression<T>(args[index], data);
}