Skip to content

Commit c8e699d

Browse files
committed
forward declaration QDataStream
1 parent 5a2220b commit c8e699d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/uncertain/quncertain.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
#include <Eigen/Core>
2424

25+
#include <QDataStream>
26+
2527
using Eigen::Matrix;
2628

2729

src/uncertain/quncertain.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222

2323
#include "uncertain/usegment.h"
2424

25-
#include <QDataStream>
26-
2725
#include <Eigen/Core>
2826

27+
class QDataStream;
28+
2929

3030
namespace Uncertain {
3131

@@ -55,8 +55,7 @@ QDataStream & operator>> ( QDataStream & in, Vector<T,N> & v);
5555
QDataStream & operator>> ( QDataStream & in, uStraightLineSegment & us);
5656
QDataStream & operator<< ( QDataStream & out, const uStraightLineSegment & us);
5757

58-
} // namespace
59-
58+
} // namespace Uncertain
6059

6160

6261
#endif // QUNCERTAIN_H

0 commit comments

Comments
 (0)