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 struct MakeComplexOp EIGEN_EMPTY_STRUCT { +template struct MakeComplexOp { + EIGEN_EMPTY_STRUCT_CTOR(MakeComplexOp) typedef complex result_type; complex operator()(const Scalar& a, const Scalar& b) const { return complex(a,b); } };