aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Geometry
diff options
context:
space:
mode:
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