diff --git a/dispatchkit/bootstrap.hpp b/dispatchkit/bootstrap.hpp index d80ff1b..e19e8fa 100644 --- a/dispatchkit/bootstrap.hpp +++ b/dispatchkit/bootstrap.hpp @@ -34,6 +34,13 @@ namespace dispatchkit } + template + Ret modulus(P1 p1, P2 p2) + { + return p1 % p2; + } + + template bool bool_and(P1 p1, P2 p2) { @@ -510,9 +517,9 @@ namespace dispatchkit bootstrap_pod_type(s, "char"); bootstrap_pod_type(s, "int64_t"); - add_opers_comparison_pod(s); add_opers_arithmetic_pod(s); + register_function(s, &modulus, "%"); register_function(s, &print, "print_string"); register_function(s, &println, "println_string");