From 231e7f7334bd731b4a808d36d0c6a1e0ba395a71 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Fri, 25 Dec 2009 15:43:10 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@104 ed2142bd-67ad-457f-ba7c-d818d4011675 --- misc/optvec.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/misc/optvec.hpp b/misc/optvec.hpp index 925040d..cc85ccf 100644 --- a/misc/optvec.hpp +++ b/misc/optvec.hpp @@ -260,13 +260,13 @@ namespace opt_utilities return false; } -}; +} -#define DEF_VEC_FUNC(_func) template \ +#define DEF_VEC_FUNC(_func) template \ opt_utilities::optvec _func(const opt_utilities::optvec& x) \ - { \ - opt_utilities::optvec result(x.size()); \ + { \ + opt_utilities::optvec result(x.size()); \ for(int i=0;i!=result.size();++i) \ { \ result[i]=_func(x[i]); \ @@ -276,11 +276,11 @@ namespace opt_utilities namespace std { - DEF_VEC_FUNC(sin); - DEF_VEC_FUNC(cos); - DEF_VEC_FUNC(log); - DEF_VEC_FUNC(sqrt); - DEF_VEC_FUNC(exp); + DEF_VEC_FUNC(sin) + DEF_VEC_FUNC(cos) + DEF_VEC_FUNC(log) + DEF_VEC_FUNC(sqrt) + DEF_VEC_FUNC(exp) template opt_utilities::optvec pow(const opt_utilities::optvec& x,const T& y) { -- cgit v1.2.2