Even though it seems the c++11 auto keyword has been supported by VAX for a few years now I can still not get it to work even in very simple use cases.
#include <vector>
template<class T>
T* make()
{
return new T();
}
std::vector<int>* foo()
{
return new std::vector<int>();
}
void bar()
{
auto p1 = foo();
auto p2 = make<std::vector<int>>();
std::vector<int>* p3 = foo();
p1. //VAX will not convert . into -> but will display members of std::vector
p2. //VAX will convert . into -> but won't display any members
p3. //This work as expected, but is not using auto
make<std::vector<int>>(). //not related to auto: VAX will not convert . into -> but will display members of std::vector
}