aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/jacobisvd.cpp
diff options
context:
space:
mode:
authorGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2018-11-23 14:24:22 +0100
committerGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2018-11-23 14:24:22 +0100
commitea60a172cf1c2b82d3d9b43a57e5a8ad391f1bdf (patch)
tree984048cfb0d8fbd2c27cabf99e47d68ec41d62f4 /test/jacobisvd.cpp
parent806352d8443b94417b1dfe863738f0edb278b5a1 (diff)
Add default constructor to Bar to make test compile again with clang-3.8
Diffstat (limited to 'test/jacobisvd.cpp')
-rw-r--r--test/jacobisvd.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/jacobisvd.cpp b/test/jacobisvd.cpp
index 41fd0631f..505bf57ae 100644
--- a/test/jacobisvd.cpp
+++ b/test/jacobisvd.cpp
@@ -70,7 +70,9 @@ void jacobisvd_method()
}
namespace Foo {
-class Bar {};
+// older compiler require a default constructor for Bar
+// cf: https://stackoverflow.com/questions/7411515/
+class Bar {public: Bar() {}};
bool operator<(const Bar&, const Bar&) { return true; }
}
// regression test for a very strange MSVC issue for which simply