Skip to content
Snippets Groups Projects
Commit 586174c1 authored by Andreas Dedner's avatar Andreas Dedner
Browse files

check for the problem reported in FS#1456

(the problem are operators of the type FieldVector<double,1> *= int)
clang fails and gcc (4.7) warns about
ISO C++ saying that these operators are aambiguous
parent 7faf61fe
No related branches found
No related tags found
No related merge requests found
......@@ -100,13 +100,14 @@ struct FieldVectorMainTest
};
template<class ft>
template<class ft, class testft=ft>
struct ScalarOperatorTest
{
ScalarOperatorTest()
{
ft a = 1;
ft c = 2;
// testft has to initializable with an int
testft a = 1;
testft c = 2;
FieldVector<ft,1> v(2);
FieldVector<ft,1> w(2);
bool b DUNE_UNUSED;
......@@ -304,6 +305,8 @@ public:
ScalarOperatorTest< complex<ft> >();
// ordering doesn't work for complex numbers
// --- test with an integer
ScalarOperatorTest< ft, int >();
// --- test next lower dimension
FieldVectorMainTest<ft,ft,0>();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment