Skip to content

Commit

Permalink
[FIX] Create an empty namespace in vpConfig to ensure that 'using nam…
Browse files Browse the repository at this point in the history
…espace VISP_NAMESPACE_NAME;' does not raise an error
  • Loading branch information
rlagneau committed May 31, 2024
1 parent fa782ab commit c4a4090
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/templates/vpConfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@
#define VISP_NAMESPACE_ADDRESSING visp::
#define BEGIN_VISP_NAMESPACE namespace visp {
#define END_VISP_NAMESPACE }
// Create an empty namespace to ensure that "using VISP_NAMESPACE_NAME;" does not raise an error
namespace VISP_NAMESPACE_NAME {}
#else
#define VISP_NAMESPACE_ADDRESSING
#define BEGIN_VISP_NAMESPACE
Expand Down

0 comments on commit c4a4090

Please sign in to comment.