What does the "operator" mean in this use of C ++?
char* pszVar= W2A(_bstr_t(bstrVar).operator wchar_t*());
causing the compiler to select, apparently, a specific, "convert to wchar_t *" in this class. "this class" is what is returned from the _bstr_t call.
This is an explicit call to the conversion operator wchar_tto make sure that it will be used, and not the other.
wchar_t
However, this is an ugly and certainly a problem in class members.
wchar_t*.
wchar_t*
.
Source: https://habr.com/ru/post/1750985/More articles:Select "value" to "value" - jqueryHow to safely erase a file / directory in Python? - pythonList Filtering - duplicate-removalAudio / video codecs for the Android platform - androidAutomotive Number Using WIX - installerHow to disable the back button in an iPhone application - iphonePerforming the interception process in the NT driver - windowsWhat structure of Java web services do you prefer? - javaPostThreadMessage for another process - c ++вызов нового оператора класса - c++All Articles