I have some code where I'm using std::string to build up strings that I then need to pass to C code. To do this, I'm trying to use the c_str() method of std::string.
However, VAX's auto-completion logic keeps trying to turn:
std::string var = "Hello";
var.c_str()
into something like:
var.~basic_string()
When I look at the definition for c_str() in the Microsoft headers, I see:
_NODISCARD _Ret_z_ const _Elem* c_str() const noexcept {
return _Mypair._Myval2._Myptr();
}
The "_NODISCARD" part seems to be confusing VAX. I worked around this by adding:
#define _NODISCARD
to my va_stdafx.h file.
Particulars:
VA_X.dll file version 10.9.2406.0 built 2021.04.23
DevEnv.exe version 16.9.31105.61 Professional