Base: fix build failure with MSVC, overloaded operator << must be in header file

This commit is contained in:
wmayer
2022-11-29 18:21:12 +01:00
parent 9537b3e84c
commit 4725e466f2
2 changed files with 6 additions and 7 deletions

View File

@@ -124,13 +124,6 @@ const char* PolygonOffset::styleAsString() const
// -----------------------------------------------------------------------------
std::ostream& operator<<( std::ostream& os, Indentation m)
{
for (int i = 0; i < m.count(); i++)
os << " ";
return os;
}
InventorOutput::InventorOutput(std::ostream& result, Indentation& indent)
: result(result)
, indent(indent)

View File

@@ -159,6 +159,12 @@ public:
int count() {
return spaces;
}
friend std::ostream& operator<<( std::ostream& os, Indentation m)
{
for (int i = 0; i < m.count(); i++)
os << " ";
return os;
}
};
class BaseExport InventorOutput