Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aland, Sebastian
amdis
Commits
e8a3e3b6
Commit
e8a3e3b6
authored
Mar 24, 2015
by
Praetorius, Simon
Browse files
CompilerBug 'Workaround'
parent
ac1878f9
Changes
2
Show whitespace changes
Inline
Side-by-side
AMDiS/src/Expressions.h
View file @
e8a3e3b6
...
@@ -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
"
);
}
}
...
...
AMDiS/src/operations/functors.hpp
View file @
e8a3e3b6
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment