From c6fefe5d8e3eda8af05c7dcb278551598dbb5d8e Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 5 Nov 2014 16:15:17 +0100 Subject: Big 853: replace enable_if in Ref<> ctor by static assertions and add failtests for Ref<> --- failtest/ref_4.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 failtest/ref_4.cpp (limited to 'failtest/ref_4.cpp') diff --git a/failtest/ref_4.cpp b/failtest/ref_4.cpp new file mode 100644 index 000000000..6c11fa4cb --- /dev/null +++ b/failtest/ref_4.cpp @@ -0,0 +1,15 @@ +#include "../Eigen/Core" + +using namespace Eigen; + +void call_ref(Ref > a) {} + +int main() +{ + MatrixXf A(10,10); +#ifdef EIGEN_SHOULD_FAIL_TO_BUILD + call_ref(A.transpose()); +#else + call_ref(A); +#endif +} -- cgit v1.2.3