From 1532fbf9496ba0c0d84d2c13f1c98b44a0309eb7 Mon Sep 17 00:00:00 2001 From: artemp Date: Thu, 11 Aug 2016 12:05:32 +0100 Subject: [PATCH] expression grammara - add `log` function --- include/mapnik/expression_grammar_x3_def.hpp | 1 + include/mapnik/function_call.hpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/mapnik/expression_grammar_x3_def.hpp b/include/mapnik/expression_grammar_x3_def.hpp index 5a628c959..a3ddcf51b 100644 --- a/include/mapnik/expression_grammar_x3_def.hpp +++ b/include/mapnik/expression_grammar_x3_def.hpp @@ -227,6 +227,7 @@ namespace mapnik { namespace grammar { ("tan", tan_impl()) ("atan", atan_impl()) ("exp", exp_impl()) + ("log", log_impl()) ("abs", abs_impl()) ("length",length_impl()) ; diff --git a/include/mapnik/function_call.hpp b/include/mapnik/function_call.hpp index a7077bb1b..84344592a 100644 --- a/include/mapnik/function_call.hpp +++ b/include/mapnik/function_call.hpp @@ -47,7 +47,6 @@ struct exp_impl { return std::exp(val.to_double()); } - }; // log @@ -58,7 +57,6 @@ struct log_impl { return std::log(val.to_double()); } - }; // sin