Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 auto type deduction issue with namespaces

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
Broes De Cat Posted - Oct 17 2014 : 07:17:03 AM
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
3   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Feb 13 2015 : 8:01:35 PM
Further improvements for case=85849 are in build 2059
sean Posted - Nov 07 2014 : 09:56:21 AM
case=85849 is fixed in build 2052
sean Posted - Oct 22 2014 : 1:20:31 PM
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.

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