diff options
author | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-07-09 19:52:44 +0000 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-07-09 19:52:44 +0000 |
commit | ed00df445dcbca77c44175b5811e2d7ca20d1605 (patch) | |
tree | ad5bbf2a21ba3dae7a6dfc5a468f209ae1145e08 /Eigen/src/Geometry | |
parent | fb77b7288ce5406ff819d8fd71ad59e317d1817f (diff) |
Guard operator<< by EIGEN_NO_IO.
Diffstat (limited to 'Eigen/src/Geometry')
-rw-r--r-- | Eigen/src/Geometry/Quaternion.h | 2 |
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 |