Skip to content

Commit f16ce5c

Browse files
committed
fix: fix reference to 'option' is ambiguous
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 <wongzheng@126.com>
1 parent 13f3003 commit f16ce5c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

examples/cpp/dds/HelloWorldExampleTCP/HelloWorld_main.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929

3030
namespace option = eprosima::option;
3131

32+
using eprosima::fastrtps::Domain;
33+
3234
struct Arg : public option::Arg
3335
{
3436
static void print_error(
@@ -105,8 +107,6 @@ struct Arg : public option::Arg
105107

106108
};
107109

108-
109-
110110
enum optionIndex
111111
{
112112
UNKNOWN_OPT,
@@ -169,9 +169,6 @@ const option::Descriptor usage[] = {
169169
{ 0, 0, 0, 0, 0, 0 }
170170
};
171171

172-
using namespace eprosima;
173-
using namespace fastrtps;
174-
using namespace rtps;
175172
int main(
176173
int argc,
177174
char** argv)

0 commit comments

Comments
 (0)