aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/examples/class_CwiseBinaryOp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/class_CwiseBinaryOp.cpp')
-rw-r--r--doc/examples/class_CwiseBinaryOp.cpp3
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); }
};