Skip to content

Commit

Permalink
Merge pull request #1818 from taketwo/fix-odr-violation
Browse files Browse the repository at this point in the history
Move RGBValue to anonymous namespace
  • Loading branch information
jspricke authored Feb 9, 2017
2 parents 39901cd + 9acccd6 commit 5f91d7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion io/src/oni_grabber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#include <pcl/exceptions.h>
#include <iostream>

namespace pcl
namespace
{
typedef union
{
Expand All @@ -60,6 +60,10 @@ namespace pcl
float float_value;
long long_value;
} RGBValue;
}

namespace pcl
{

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ONIGrabber::ONIGrabber (const std::string& file_name, bool repeat, bool stream)
Expand Down
2 changes: 1 addition & 1 deletion io/src/openni2_grabber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

using namespace pcl::io::openni2;

namespace pcl
namespace
{
// Treat color as chars, float32, or uint32
typedef union
Expand Down

0 comments on commit 5f91d7f

Please sign in to comment.