C++ reverse engineering: using keyword parse error

242 views
Skip to first unread message

Morgan@localhost Dustan Morgan

unread,
Sep 8, 2015, 7:06:26 PM9/8/15
to sparx-enterprise-architect-b...@googlegroups.com
Hi, I'm a new user to Enterprise Architect.  I'm trying to generate a class diagram from C++ code.  However, EA seems to be unable to handle the "using" keyword?  

There was an error parsing blah.cpp  on line 26.  Unexpected symbol: using      

This seems to happen with either usage of the "using" keyword
using namespace X
using myvar = int;

Is there some sort of work-around to get things running?

[original message]

M@localhost Simon M

unread,
Sep 13, 2015, 7:15:55 PM9/13/15
to sparx-enterprise-architect-b...@googlegroups.com
I would certainly expect using namespace to work (I've imported code containing that many times.) I'm not so sure about the type aliasing usage. (At least I think that's what you're trying to refer to, myvar implies you're expecting a variable instead) It was added in C++11

Look above line 26 for the likely problem. eg. Taking your two samples, it would get a parse error on the second using because of the missing semi-colon on the line above. (I realize that's probably not in your code.)

[original message]
Reply all
Reply to author
Forward
0 new messages