Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Create implementation not working correctly.

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
johnny5 Posted - Sep 14 2011 : 8:38:10 PM
IDE: Visual Studio 2010
VAX: 10.6.1856

Create implementation does not work correctly when the return type is wrapped in a nested namespace and you do not explicitly scope the outer namespace.

Code in a header file:

namespace NS_1
{
  namespace NS_2
  {
    enum Bar
    {
      _1
    };
  }
  class Widget
  {
    NS_2::Bar func();
  };
}

When you try to create the implementation you will get the following generated in the source file:

NS_2::Bar NS_1::Widget::func()
{}

The return type needs to be NS_1::NS_2::Bar.

It works fine if you were to change the signature of func() to:
NS_1::NS_2::Bar func();

2   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Feb 02 2016 : 7:56:23 PM
case=1247 is fixed in build 2089.
accord Posted - Sep 15 2011 : 10:33:34 PM
I am seeing the same effect here. Thank you for the clear example.

case=1247

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