Skip to content

Commit

Permalink
Base: fix build failure with MSVC, overloaded operator << must be in …
Browse files Browse the repository at this point in the history
…header file
  • Loading branch information
wwmayer committed Nov 29, 2022
1 parent c16e467 commit c16b94c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Base/Builder3D.cpp
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions src/Base/Builder3D.h
Expand Up @@ -159,6 +159,12 @@ class Indentation {
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
Expand Down

0 comments on commit c16b94c

Please sign in to comment.