Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1714: C++ Create Implementation, typedef ns

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 - Jan 26 2009 : 05:26:29 AM

Another namespace related bug:


namespace data {
typedef boost::shared_ptr<Foo> FooPtr;
}

namespace data {
class Bar {
public:
Bar();
FooPtr a();
};
}

// cpp file:
namespace data {
Bar::Bar()
{
}
}


If you call "create implementation" for the method "a()" you expect this code inside the namespace bracket:


FooPtr Bar::a()
{
}


But you get:


data::FooPtr Bar::a()
{
}


Which works, but is odd, because the "data::" prefix isn't necessary inside of the namespace.
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Jan 27 2009 : 2:08:36 PM
I am seeing the same effect here. Thank you for the clear description.

case=6130

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