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. |