mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-18 19:30:38 +08:00
Fix compilation error in doc/examples/class_CwiseBinaryOp.cpp .
This is a follow-up of 9d5478303667bd97f3e20696f8a8c82cb5b2d65f (better work around for empty structs).
This commit is contained in:
parent
32f6242b60
commit
9f1fa6ea5e
@ -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); }
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user