aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-04-04 17:03:23 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-04-04 17:03:23 +0000
commitb025e3add3aeb1e5e79ba167398fbce8f4d75b21 (patch)
tree17c6137dc5543c306f26c894d9ce4beb5cc43c20
parent9e56181b0f31d3b51397af30493805444057e456 (diff)
downloadopt-utilities-b025e3add3aeb1e5e79ba167398fbce8f4d75b21.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@17 ed2142bd-67ad-457f-ba7c-d818d4011675
-rw-r--r--models/pow_model.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/pow_model.hpp b/models/pow_model.hpp
index 79d7be8..0493303 100644
--- a/models/pow_model.hpp
+++ b/models/pow_model.hpp
@@ -22,11 +22,11 @@ namespace opt_utilities
private:
model<Ty,Tx,Tp,Tstr>* pm1;
- typename element_type_trait<Tp>::value_type idx;
+ typename element_type_trait<Tp>::element_type idx;
public:
pow_model(const model<Ty,Tx,Tp,Tstr>& m1,
- const typename element_type_trait<Tp>::value_type& index)
+ const typename element_type_trait<Tp>::element_type& index)
:pm1(m1.clone()),idx(index)
{
int np1=m1.get_num_params();
@@ -110,7 +110,7 @@ namespace opt_utilities
template <typename Ty,typename Tx,typename Tp,typename Tstr>
pow_model<Ty,Tx,Tp,Tstr> pow(const model<Ty,Tx,Tp,Tstr>& m1,
const typename element_type_trait<Tp>::
- value_type& idx)
+ element_type& idx)
{
return pow_model<Ty,Tx,Tp,Tstr>(m1,idx);
}