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; }