aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2013-04-17 10:24:31 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2013-04-17 10:24:31 +0200
commit46755648ec341aa5e0283b47456108bb2897b1b3 (patch)
tree5971f26960ed5d92145ecfacf63e367d12065770 /test
parent41b3c56e611dfcafa5550da6646c474c879521b0 (diff)
Add a few missing standard functions for ScalarWithExceptions type.
Diffstat (limited to 'test')
-rw-r--r--test/exceptions.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/exceptions.cpp b/test/exceptions.cpp
index 8c48b2f7b..b83fb82ba 100644
--- a/test/exceptions.cpp
+++ b/test/exceptions.cpp
@@ -69,6 +69,10 @@ class ScalarWithExceptions
static int countdown;
};
+ScalarWithExceptions real(const ScalarWithExceptions &x) { return x; }
+ScalarWithExceptions imag(const ScalarWithExceptions & ) { return 0; }
+ScalarWithExceptions conj(const ScalarWithExceptions &x) { return x; }
+
int ScalarWithExceptions::instances = 0;
int ScalarWithExceptions::countdown = 0;