aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}