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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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]