Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Create Declaration in namespace - strange

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
peterchen Posted - Sep 16 2009 : 4:05:14 PM
// -- .h
namespace A
{
  struct Foo  
  {
  }

} // namespace

// -- .cpp
namespace A
{

  void Foo::Bar()
  {
  }

} // namespace


choosing "Create Declaration" for Foo::Bar, the following prototype is added to the header:


  struct Foo  
  {
    void Foo::Bar();
  }


expected declaration:


  struct Foo  
  {
    void Bar();
  }



affects VC9, VC6, build 1735 and earlier builds.
4   L A T E S T    R E P L I E S    (Newest First)
support Posted - Sep 25 2013 : 4:38:50 PM
case=6593 is fixed in build 2001.
accord Posted - Sep 29 2009 : 2:56:33 PM
Sure. Structs and classes are synonyms in c++
eco Posted - Sep 29 2009 : 10:42:22 AM
same for classes
accord Posted - Sep 16 2009 : 4:29:52 PM
I am seeing the same effect here. Thank you for the clear description.

case=6593

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