Using VAX 1526 with C++ in VS2005:
This situation:
grounding.h
#pragma once
namespace airplane {
namespace crashs {
class Grounding
{
typedef int VictimCount;
public:
Grounding();
~Grounding();
protected:
VictimCount getVictims() const;
};
}
}
grounding.cpp
#include "grounding.h"
namespace airplane {
namespace crashs {
Grounding::Grounding()
{
}
Grounding::~Grounding()
{
}
}
}
Select "Implement method" on "VictimCount getVictims() const;". You get this Implementation:
VictimCount airplane::crashs::Grounding::getVictims() const
{
}
Bug: The type "VictimCount" needs to be declared in the same namespace as the class. A correct implementation would be:
airplane::crashs::VictimCount airplane::crashs::Grounding::getVictims() const
{
}
Feature Request: Even better would be this result:
grounding.cpp
#include "grounding.h"
namespace airplane {
namespace crashs {
Grounding::Grounding()
{
}
Grounding::~Grounding()
{
}
VictimCount Grounding::getVictims() const
{
}
}
}