Skip to content

Commit f67767a

Browse files
ludekvodickapantor
authored andcommitted
Fixed warning in 64-bit windows build (#24)
* Fixed passing callback arguments as reference * Another passing as const reference instead of new instance * Implemented variable number of parameters - extended function "function_regex" to pass minimum and maximum parameters. if minimum=maximum, all params are required, if minimum = 0, all params are optional..... - for single parameter there is different regex (created by the same function_regex function) to allo read sort([1,2,3]) as one parameter - extended Match to test if group is valid, so only valid params are filled to params vector - new function arguments_count to test number of arguments passed to callback * unit tests for updated callbacks with variable number of params * merge with last version * Optimized passing arguments as const reference * Fixed warning on 64-bit windows (conversion from 'size_t' to 'int', possible loss of data)
1 parent 6da3761 commit f67767a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inja.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ struct Parsed {
347347
};
348348

349349
using Arguments = std::vector<ElementExpression>;
350-
using CallbackSignature = std::pair<std::string, int>;
350+
using CallbackSignature = std::pair<std::string, size_t>;
351351
};
352352

353353

0 commit comments

Comments
 (0)