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

 All Forums
 Visual Assist
 Technical Support
 Create implementation not working correctly.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

New Member

4 Posts

Posted - Sep 14 2011 :  8:38:10 PM  Show Profile  Reply with Quote
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
  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();

Whole Tomato Software

United Kingdom
3279 Posts

Posted - Sep 15 2011 :  10:33:34 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear example.

Go to Top of Page

Whole Tomato Software

2817 Posts

Posted - Feb 02 2016 :  7:56:23 PM  Show Profile  Reply with Quote
case=1247 is fixed in build 2089.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2021 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000