Skip to content

Commit

Permalink
Fix MSVC linkage errors due to VISP_EXPORT on header only class
Browse files Browse the repository at this point in the history
  • Loading branch information
SamFlt committed Feb 5, 2024
1 parent dc5e172 commit 8f9af8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/sensor/include/visp3/sensor/vpLaserScan.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
Other data as the start/stop angle, the start/end timestamp are
also considered.
*/
class VISP_EXPORT vpLaserScan
class /*VISP_EXPORT*/ vpLaserScan
{
public:
/*! Default constructor that initialize all the internal variable to zero.
Expand Down
8 changes: 4 additions & 4 deletions modules/sensor/include/visp3/sensor/vpLaserScanner.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@
\brief Class that defines a generic laser scanner.
*/
class VISP_EXPORT vpLaserScanner
class /*VISP_EXPORT*/ vpLaserScanner
{
public:
/*! Default constructor that initialize all the internal variable to zero.
*/
vpLaserScanner() : ip("null"), port(0){};
vpLaserScanner() : ip("null"), port(0) { };
/*! Copy constructor. */
vpLaserScanner(const vpLaserScanner &scanner) : ip(scanner.ip), port(scanner.port){};
vpLaserScanner(const vpLaserScanner &scanner) : ip(scanner.ip), port(scanner.port) { };
/*! Default destructor that does nothing. */
virtual ~vpLaserScanner(){};
virtual ~vpLaserScanner() { };

/*! Set the Ethernet address of the laser. */
void setIpAddress(std::string ip_address) { this->ip = ip_address; };
Expand Down

0 comments on commit 8f9af8a

Please sign in to comment.