Skip to content

Commit

Permalink
[FIX] Fix undefined symbol void swap(vpDetectorAprilTag &, vpDetector…
Browse files Browse the repository at this point in the history
…AprilTag &)
  • Loading branch information
rlagneau committed May 28, 2024
1 parent f7e4d2a commit 89feeb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class vpDetectorAprilTag;
END_VISP_NAMESPACE

// Forward declaration to have the operator in the global namespace
void swap(VISP_NAMESPACE_ADDRESSING vpDetectorAprilTag &o1, VISP_NAMESPACE_ADDRESSING vpDetectorAprilTag &o2);
VISP_EXPORT void swap(VISP_NAMESPACE_ADDRESSING vpDetectorAprilTag &o1, VISP_NAMESPACE_ADDRESSING vpDetectorAprilTag &o2);

BEGIN_VISP_NAMESPACE
/*!
Expand Down Expand Up @@ -221,7 +221,7 @@ BEGIN_VISP_NAMESPACE
* Other examples are also provided in tutorial-apriltag-detector.cpp and
* tutorial-apriltag-detector-live.cpp
*/
class VISP_EXPORT vpDetectorAprilTag : public vpDetectorBase
class VISP_EXPORT vpDetectorAprilTag : public vpDetectorBase
{
public:
enum vpAprilTagFamily
Expand Down Expand Up @@ -308,7 +308,7 @@ class VISP_EXPORT vpDetectorAprilTag : public vpDetectorBase
m_displayTagThickness = thickness;
}

friend void ::swap(vpDetectorAprilTag &o1, vpDetectorAprilTag &o2);
VISP_EXPORT friend void ::swap(vpDetectorAprilTag &o1, vpDetectorAprilTag &o2);

void setZAlignedWithCameraAxis(bool zAlignedWithCameraFrame);

Expand Down
2 changes: 1 addition & 1 deletion modules/detection/src/tag/vpDetectorAprilTag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ void vpDetectorAprilTag::setZAlignedWithCameraAxis(bool zAlignedWithCameraFrame)

END_VISP_NAMESPACE

void swap(VISP_NAMESPACE_ADDRESSING vpDetectorAprilTag &o1, VISP_NAMESPACE_ADDRESSING vpDetectorAprilTag &o2)
VISP_EXPORT void swap(VISP_NAMESPACE_ADDRESSING vpDetectorAprilTag &o1, VISP_NAMESPACE_ADDRESSING vpDetectorAprilTag &o2)
{
using std::swap;

Expand Down

0 comments on commit 89feeb8

Please sign in to comment.