Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1526: Implement method, return, wrong namespace

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
drzoom Posted - Jul 10 2006 : 07:51:58 AM
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
{

}

}
}



4   L A T E S T    R E P L I E S    (Newest First)
rhummer Posted - Jul 11 2006 : 09:06:40 AM
The cases are listed for our reference when the bug is fixed, we can search the forums for the case and note what build it will be fixed in.
bugfix Posted - Jul 11 2006 : 04:24:24 AM
you can't.
drzoom Posted - Jul 11 2006 : 04:06:35 AM
How can I lookup the cases you list here?
feline Posted - Jul 10 2006 : 6:39:43 PM
i run into the same bug myself fairly often when returning a nested type

case=1247

a little irritating, but not enough to stop me using Create Implementation all over the place

the request to place the code into the existing namespace block has already come up

case=1359

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000