Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Shadow pointer member variable
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> class MyClass { public: MyClass() : m_pVar(nullptr) { } void Run() { std::cout << "m_pVar= " << m_pVar<< std::endl; int* m_pVar = static_cast<int*>(malloc(4)); } private: int* m_pVar; }; int main() { MyClass m; m.Run(); m.Run(); }
run
|
edit
|
history
|
help
0
ADL of operator expression & unqualified function call
C++ string format
Overload resolve function pointer
Thing v.2
accessibility on in-class typedefs
MSVCStatic
lab1
VS'15 parameter pack sfinae
<string> Indirect include of <errno.h> with VSC++
ExtThes_Uniquify