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
 auto type deduction issue with namespaces
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Broes De Cat
New Member

3 Posts

Posted - Oct 17 2014 :  07:17:03 AM  Show Profile  Reply with Quote
Hi,

When trying to find out why auto type deduction almost never seemed to be able to derive types, I found the following explanation/workaround.

I my setup is as follows:
header file
#pragma once

namespace TT {
class Test {
private:
Test* s;
public:
Test();
int getValue() const;
};
}

cpp file
#include "Test.h"

using namespace TT;

Test::Test() {
auto x = s;
x. // Autocompletion does nothing
}

However, if I change the cpp file to
#include "Test.h"

namespace TT {
Test::Test() {
auto x = s;
x. // Autocompletion works perfectly
}
}

Is there a way to get the upper one working.
It is valid c++ and quite standard, so I hope it can be fixed, as our complete codebase is built in that way (and it's quite large ;) ).

Thanks!
Broes

sean
Whole Tomato Software

USA
2817 Posts

Posted - Oct 22 2014 :  1:20:31 PM  Show Profile  Reply with Quote
I'm able to repro the problem. Thanks for taking the time to gather the conditions and report it. No workaround at this time. I've opened a bug report for it: case=85849

Unfortunately, it may not be fixed in the next release but should be addressed by the following one. This case will be updated when it is fixed.
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Nov 07 2014 :  09:56:21 AM  Show Profile  Reply with Quote
case=85849 is fixed in build 2052
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Feb 13 2015 :  8:01:35 PM  Show Profile  Reply with Quote
Further improvements for case=85849 are in build 2059
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000