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
 1714: C++ Create implementation, enum namespace.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ketchup Master

57 Posts

Posted - Jan 26 2009 :  05:19:22 AM  Show Profile  Reply with Quote
Hi, there is a bug which is quite old. But it starting annoying me :-)

class A {
enum Foo { X, Y, Z };

class B {
Foo foo();

If you create an implementation for foo(), you expect this code:

A::Foo B::foo()

or this (IMO better)

B::Foo B::foo()

but you get this:

Foo B::foo()

Which is definitely wrong. :-) Easy fix?

But I have to state that "create implementation" is working well for template classes! Respect!

best regards

Edited by - drzoom on Jan 26 2009 05:20:07 AM

Whole Tomato Software

United Kingdom
17987 Posts

Posted - Jan 26 2009 :  2:10:47 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.


This has actually been fixed quite a while ago, but as this code proves, it is only fixed for some situations. This suggests it is not quite such an easy fix.

If the enum is defined inside the class then the enum return type is qualified correctly.

zen is the art of being at one with the two'ness
Go to Top of Page

Whole Tomato Software

2817 Posts

Posted - Feb 02 2016 :  7:58:50 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