Skip to content

Commit

Permalink
fix: fix reference to 'option' is ambiguous
Browse files Browse the repository at this point in the history
When compiling examples with g++7.5 on Ubuntu18.04, an error occurs:
  examples/cpp/dds/HelloWorldExampleTCP/HelloWorld_main.cpp:36:21: error: reference to 'option' is ambiguous

Signed-off-by: jason_w <[email protected]>
  • Loading branch information
MambaWong committed Jul 10, 2024
1 parent 13f3003 commit 9966166
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/cpp/dds/HelloWorldExampleTCP/HelloWorld_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

namespace option = eprosima::option;

using eprosima::fastrtps::Domain;

struct Arg : public option::Arg
{
static void print_error(
Expand Down Expand Up @@ -169,9 +171,6 @@ const option::Descriptor usage[] = {
{ 0, 0, 0, 0, 0, 0 }
};

using namespace eprosima;
using namespace fastrtps;
using namespace rtps;
int main(
int argc,
char** argv)
Expand Down

0 comments on commit 9966166

Please sign in to comment.