Author Topic: Auto-insert of members places in wrong order  (Read 2023 times)

PouncingPanda

  • Community Member
  • Posts: 74
  • Hero Points: 2
Auto-insert of members places in wrong order
« on: April 06, 2008, 06:32:18 pm »
I have a C++ class I'm creating.  It inherits from a class with pure virtual members.  SE opens a dialog with a list of parent's members that I might want to overload.  I select the ones I want and functions stubs are placed in my class for me.  All cool except the comments for the first function appear before the 'public:' keyword.

I get this:
Code: [Select]
#pragma once

class EntityImage : public SimpleEntity {
    // Responsible for extracting relevant data from fIn.  Executes callbacks
    // (AssignAttributes) to assign variables mapping strings (ids) to string
    // values.
public:
    virtual void Feed(std::fstream& fIn) {
    }
    virtual void FeedFromFile(int fileId) {
    }
    virtual bool ReceiveEvent(Event& Event) {
    }
};

When I should probably get this:

Code: [Select]
#pragma once

class EntityImage : public SimpleEntity {
public:
    // Responsible for extracting relevant data from fIn.  Executes callbacks
    // (AssignAttributes) to assign variables mapping strings (ids) to string
    // values.
    virtual void Feed(std::fstream& fIn) {
    }
    virtual void FeedFromFile(int fileId) {
    }
    virtual bool ReceiveEvent(Event& Event) {
    }
};

Bug or bizarre intended behavior?

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2357
  • Hero Points: 315
Re: Auto-insert of members places in wrong order
« Reply #1 on: April 08, 2008, 09:27:18 pm »
Yes, definately a bug.  Thank you for catching this one for us.