From 8525c2b0b50c4024fcdb14f67baadefcc1eea0a3 Mon Sep 17 00:00:00 2001 From: Tobias Schwinger Date: Fri, 13 Jul 2007 18:46:28 +0000 Subject: [PATCH] changes result computation to use boost::result_of-based scheme [SVN r38207] --- example/performance/functional.cpp | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/example/performance/functional.cpp b/example/performance/functional.cpp index a4d5056b..228586eb 100644 --- a/example/performance/functional.cpp +++ b/example/performance/functional.cpp @@ -42,10 +42,7 @@ namespace return boost::fusion::fold(seq, state, sum_op()); } - template struct result - { - typedef int type; - }; + typedef int result_type; private: @@ -64,10 +61,7 @@ namespace return value; } - template struct result - { - typedef int type; - }; + typedef int result_type; }; }; @@ -98,12 +92,7 @@ namespace return a0 + a1 + a2 + a3; } - template - struct result - { - typedef int type; - }; + typedef int result_type; }; template @@ -324,5 +313,6 @@ int main() std::cout << "unfused_generic > " << call_unfused(f,res) << std::endl; total += res; } + return total; }