Add a few missing standard functions for ScalarWithExceptions type.

This commit is contained in:
Gael Guennebaud 2013-04-17 10:24:31 +02:00
parent 41b3c56e61
commit 46755648ec

View File

@ -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;