Book a Demo

Author Topic: Import from source doesn't understand  'typen  (Read 3226 times)

johnw@wessex

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Import from source doesn't understand  'typen
« on: October 26, 2006, 08:24:46 am »
EA will not reverse engineer any of my template classes when they include lines with typename


There was an error parsing H:\Work\WCL\WCL\wsx_image_grey_template.h on line 29.  Unexpected symbol: Get_Image_Start

Here's a fragment of the template below.

namespace wsx
{
  namespace image
  {
          template<class TSample>
          class wsx_image_grey_template : public wsx_image_template<TSample>
           {
                   public:
                   // Defined functions.
                   typename virtual iterator Get_Image_Start();
                   typename virtual iterator Get_Image_Start(int x, int y);
                   typename virtual iterator Get_Image_Start(const wsx::data::wsx_point &point);


Any ideas for a fix?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Import from source doesn't understand  'typen
« Reply #1 on: October 26, 2006, 04:03:29 pm »
The order of your keywords is causing the issue.  EA is expecting the storage specifier (typename) to be immediately before the type.  I've logged an issue to this effect and we'll fix it as soon as we can.

Until then, you'll be able to get you code imported by swapping the order of typename and virtual.