VA_X.dll file version 10.9.2048.0 built 2014.09.22
DevEnv.exe version 12.0.30723.0 Professional
It seems that the new C++11 syntax for type aliases is not always recognized correctly.
This works:
using MyString = std::string; // MyString recognized
void f()
{
MyString x; // type recognized
x.empty(); // auto completion works nicely
}
But as soon as you put it in a namespace it no longer works:
namespace MyLocalNamespace
{
using MyString = std::string;
void f()
{
MyString x;
x.empty();
}
}
=> MyString is not recognized as type anymore (underlined), and other features like auto completion, ... as a result no longer work.
The same is happening if you use it inside a class declaration:
class MyClass
{
public:
using MyString = std::string;
MyString getString();
};
Bart