In c++ you have the possibility to explicitly delete functions.
For more info see: https://en.cppreference.com/w/cpp/language/function
Scroll down to the Function definition paragraph.
The syntax is:
void foo() = delete;
and what you basically do is explicitly tell that the function is not available.
In our codebase we sometimes use this to 'document' that we thought of a certain function, but explicitly do not want it to be present.
As the function is deleted, ideally you do not want code completion to suggest it.
namespace OMTLS
{
void foo() {}
void foo2() = delete;
}
int main()
{
OMTLS::foo();
//OMTLS::foo2(); // foo2 should not be suggested by code completion...
return 0;
}
Environment:
VA_X.dll file version 10.9.2353.0 built 2019.11.07
DevEnv.exe version 16.2.29123.88 Professional
Bart