Skip to content

Commit 7a4e80c

Browse files
committed
re-add symbol export
When compiling with hidden visiblity, using operator<< on a VrmlNode from outside the vrml library proper requires that this operator is exported. So re-add the export, but this time before the friend declaration, assuming that the compile problems on windows stem from the fact that the first declaration (as a friend) did not specify all decorators.
1 parent bba1208 commit 7a4e80c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/OpenCOVER/vrml97/vrml/VrmlNode.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ namespace vrml{
5151

5252
class VrmlScene;
5353
class Viewer;
54-
54+
class VrmlNode;
5555
class VrmlNodeUpdateRegistry;
56+
57+
std::ostream &VRMLEXPORT operator<<(std::ostream &os, const VrmlNode &f);
58+
5659
class VRMLEXPORT VrmlNode
5760
{
5861
friend class VrmlNodeUpdateRegistry;
@@ -354,8 +357,6 @@ class VRMLEXPORT VrmlNode
354357

355358
};
356359

357-
std::ostream &operator<<(std::ostream &os, const VrmlNode &f);
358-
359360
template<typename VrmlType>
360361
VrmlField::VrmlFieldType toEnumType(const VrmlType *t = nullptr);
361362

0 commit comments

Comments
 (0)