mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19: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
|
||||
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user