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:
#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:
#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?