From 9e56181b0f31d3b51397af30493805444057e456 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Sat, 4 Apr 2009 16:28:46 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@16 ed2142bd-67ad-457f-ba7c-d818d4011675 --- models/pow_model.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'models/pow_model.hpp') diff --git a/models/pow_model.hpp b/models/pow_model.hpp index 0aae2e1..79d7be8 100644 --- a/models/pow_model.hpp +++ b/models/pow_model.hpp @@ -1,6 +1,7 @@ #ifndef POW_MODEL_H_ #define POW_MODEL_H_ #include +#include #include namespace opt_utilities @@ -21,11 +22,11 @@ namespace opt_utilities private: model* pm1; - typename value_type_trait::value_type idx; + typename element_type_trait::value_type idx; public: pow_model(const model& m1, - const typename value_type_trait::value_type& index) + const typename element_type_trait::value_type& index) :pm1(m1.clone()),idx(index) { int np1=m1.get_num_params(); @@ -108,7 +109,8 @@ namespace opt_utilities template pow_model pow(const model& m1, - const typename value_type_trait::value_type& idx) + const typename element_type_trait:: + value_type& idx) { return pow_model(m1,idx); } -- cgit v1.2.2