Commit e8a3e3b6 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

CompilerBug 'Workaround'

parent ac1878f9
...@@ -228,13 +228,13 @@ struct GenericFirstOrderTerm_i : public GenericOperatorTerm<Term, 1> ...@@ -228,13 +228,13 @@ struct GenericFirstOrderTerm_i : public GenericOperatorTerm<Term, 1>
GenericFirstOrderTerm_i(const Term& term_) GenericFirstOrderTerm_i(const Term& term_)
: GenericOperatorTerm<Term, 1>(term_) : GenericOperatorTerm<Term, 1>(term_)
{ {
FirstOrderTerm::bOne = I; this->FirstOrderTerm::bOne = I;
} }
GenericFirstOrderTerm_i(const Term& term_, int I0) GenericFirstOrderTerm_i(const Term& term_, int I0)
: GenericOperatorTerm<Term, 1>(term_) : GenericOperatorTerm<Term, 1>(term_)
{ {
FirstOrderTerm::bOne = I0; this->FirstOrderTerm::bOne = I0;
TEST_EXIT_DBG( I < 0 && I0 >= 0 )("You yould specify eather template<int I>, or constructor(int I0)\n"); TEST_EXIT_DBG( I < 0 && I0 >= 0 )("You yould specify eather template<int I>, or constructor(int I0)\n");
} }
......
...@@ -71,7 +71,7 @@ namespace AMDiS ...@@ -71,7 +71,7 @@ namespace AMDiS
T val; T val;
}; };
template<typename T, typename S> template<typename T, typename S=T>
struct add_constant : FunctorBase struct add_constant : FunctorBase
{ {
typedef T result_type; typedef T result_type;
...@@ -81,7 +81,7 @@ namespace AMDiS ...@@ -81,7 +81,7 @@ namespace AMDiS
result_type& operator()(T& v) { return (v += value); } result_type& operator()(T& v) { return (v += value); }
}; };
template<typename T, typename S> template<typename T, typename S=T>
struct minus_constant : FunctorBase struct minus_constant : FunctorBase
{ {
typedef T result_type; typedef T result_type;
...@@ -91,7 +91,7 @@ namespace AMDiS ...@@ -91,7 +91,7 @@ namespace AMDiS
result_type& operator()(T& v) { return (v -= value); } result_type& operator()(T& v) { return (v -= value); }
}; };
template<typename T, typename S> template<typename T, typename S=T>
struct mult_constant : FunctorBase struct mult_constant : FunctorBase
{ {
typedef T result_type; typedef T result_type;
...@@ -101,7 +101,7 @@ namespace AMDiS ...@@ -101,7 +101,7 @@ namespace AMDiS
result_type& operator()(T& v) { return (v *= value); } result_type& operator()(T& v) { return (v *= value); }
}; };
template<typename T, typename S> template<typename T, typename S=T>
struct div_constant : FunctorBase struct div_constant : FunctorBase
{ {
typedef T result_type; typedef T result_type;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment