Base: fix build failure with MSVC, overloaded operator << must be in header file
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user