Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Create Declaration in namespace - strange
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

peterchen
Tomato Guru

121 Posts

Posted - Sep 16 2009 :  4:05:14 PM  Show Profile  Reply with Quote
// -- .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.

accord
Whole Tomato Software

United Kingdom
3277 Posts

Posted - Sep 16 2009 :  4:29:52 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=6593
Go to Top of Page

eco
Tomato Guru

102 Posts

Posted - Sep 29 2009 :  10:42:22 AM  Show Profile  Reply with Quote
same for classes
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3277 Posts

Posted - Sep 29 2009 :  2:56:33 PM  Show Profile  Reply with Quote
Sure. Structs and classes are synonyms in c++
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Sep 25 2013 :  4:38:50 PM  Show Profile  Reply with Quote
case=6593 is fixed in build 2001.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000