mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-06 14:14:46 +08:00
Guard operator<< by EIGEN_NO_IO.
This commit is contained in:
parent
fb77b7288c
commit
ed00df445d
@ -211,10 +211,12 @@ class QuaternionBase : public RotationBase<Derived, 3>
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef EIGEN_NO_IO
|
||||||
friend std::ostream& operator<<(std::ostream& s, const QuaternionBase<Derived>& q) {
|
friend std::ostream& operator<<(std::ostream& s, const QuaternionBase<Derived>& q) {
|
||||||
s << q.x() << "i + " << q.y() << "j + " << q.z() << "k" << " + " << q.w();
|
s << q.x() << "i + " << q.y() << "j + " << q.z() << "k" << " + " << q.w();
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef EIGEN_QUATERNIONBASE_PLUGIN
|
#ifdef EIGEN_QUATERNIONBASE_PLUGIN
|
||||||
# include EIGEN_QUATERNIONBASE_PLUGIN
|
# include EIGEN_QUATERNIONBASE_PLUGIN
|
||||||
|
Loading…
Reference in New Issue
Block a user