diff options
author | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2009-12-21 18:16:01 +0000 |
---|---|---|
committer | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2009-12-21 18:16:01 +0000 |
commit | 9f1fa6ea5e3664b7c31eb8250561289c891a749e (patch) | |
tree | 6265f7e8246d6816f4958bc904a2ddbfa445d8e1 /doc/examples/class_CwiseBinaryOp.cpp | |
parent | 32f6242b601b7554c8c5d4510b8d769777744006 (diff) |
Fix compilation error in doc/examples/class_CwiseBinaryOp.cpp .
This is a follow-up of 9d5478303667bd97f3e20696f8a8c82cb5b2d65f
(better work around for empty structs).
Diffstat (limited to 'doc/examples/class_CwiseBinaryOp.cpp')
-rw-r--r-- | doc/examples/class_CwiseBinaryOp.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/examples/class_CwiseBinaryOp.cpp b/doc/examples/class_CwiseBinaryOp.cpp index fb9b2ff09..7ca5bf6ef 100644 --- a/doc/examples/class_CwiseBinaryOp.cpp +++ b/doc/examples/class_CwiseBinaryOp.cpp @@ -4,7 +4,8 @@ USING_PART_OF_NAMESPACE_EIGEN using namespace std; // define a custom template binary functor -template<typename Scalar> struct MakeComplexOp EIGEN_EMPTY_STRUCT { +template<typename Scalar> struct MakeComplexOp { + EIGEN_EMPTY_STRUCT_CTOR(MakeComplexOp) typedef complex<Scalar> result_type; complex<Scalar> operator()(const Scalar& a, const Scalar& b) const { return complex<Scalar>(a,b); } }; |