From ed00df445dcbca77c44175b5811e2d7ca20d1605 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Thu, 9 Jul 2020 19:52:44 +0000 Subject: Guard operator<< by EIGEN_NO_IO. --- Eigen/src/Geometry/Quaternion.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Eigen/src/Geometry') diff --git a/Eigen/src/Geometry/Quaternion.h b/Eigen/src/Geometry/Quaternion.h index bebfca422..61f6d0a2b 100644 --- a/Eigen/src/Geometry/Quaternion.h +++ b/Eigen/src/Geometry/Quaternion.h @@ -211,10 +211,12 @@ class QuaternionBase : public RotationBase } #endif +#ifndef EIGEN_NO_IO friend std::ostream& operator<<(std::ostream& s, const QuaternionBase& q) { s << q.x() << "i + " << q.y() << "j + " << q.z() << "k" << " + " << q.w(); return s; } +#endif #ifdef EIGEN_QUATERNIONBASE_PLUGIN # include EIGEN_QUATERNIONBASE_PLUGIN -- cgit v1.2.3