aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Geometry
diff options
context:
space:
mode:
authorGravatar Rasmus Munk Larsen <rmlarsen@google.com>2020-07-09 19:52:44 +0000
committerGravatar Rasmus Munk Larsen <rmlarsen@google.com>2020-07-09 19:52:44 +0000
commited00df445dcbca77c44175b5811e2d7ca20d1605 (patch)
treead5bbf2a21ba3dae7a6dfc5a468f209ae1145e08 /Eigen/src/Geometry
parentfb77b7288ce5406ff819d8fd71ad59e317d1817f (diff)
Guard operator<< by EIGEN_NO_IO.
Diffstat (limited to 'Eigen/src/Geometry')
-rw-r--r--Eigen/src/Geometry/Quaternion.h2
1 files changed, 2 insertions, 0 deletions
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<Derived, 3>
}
#endif
+#ifndef EIGEN_NO_IO
friend std::ostream& operator<<(std::ostream& s, const QuaternionBase<Derived>& q) {
s << q.x() << "i + " << q.y() << "j + " << q.z() << "k" << " + " << q.w();
return s;
}
+#endif
#ifdef EIGEN_QUATERNIONBASE_PLUGIN
# include EIGEN_QUATERNIONBASE_PLUGIN