Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - OT

Pages: [1]
1
General Board / Parsing error when synchronizing with code
« on: June 11, 2014, 06:23:41 pm »
I have a strange problem with the
-> Code Engineering -> Synchronize Package with code...
function in EA.

Say, I have a simple class A:

class A
{
public:
      A();
      virtual ~A();
};
A::A()
{
}
A::~A()
{
}

Everything goes fine when I use the "Synchronize Package with code..."
function. Next I add an additional constructor which passes a reference
to a C array of size 2:

class A
{
public:
      A();
      A(BYTE (&bInfo)[2]);
      virtual ~A();
private:
      BYTE (&m_bInfo)[2];
};
A::A()
{
}
A::A(BYTE (&bInfo)[2])
 : m_bInfo(bInfo)
{
}
A::~A()
{
}

The compiler is totally happy with this construct.
EA however generates a parsing error: "Unexpected Symbol: ;"

How can I fix this?

Pages: [1]