VisualC++ generates COM reference counting smart pointers for every COM interface and Im wondering to what C++ smart pointer best compares to these COM smart pointers
for instance I have
IInterface *
and
IInterfacePtr
Anyone knows?
This is a discussion on COM smart pointer / C++ smart pointer within the Windows Programming forums, part of the Platform Specific Boards category; VisualC++ generates COM reference counting smart pointers for every COM interface and Im wondering to what C++ smart pointer best ...
VisualC++ generates COM reference counting smart pointers for every COM interface and Im wondering to what C++ smart pointer best compares to these COM smart pointers
for instance I have
IInterface *
and
IInterfacePtr
Anyone knows?
All smart pointers are generic. It doesn't matter WHAT you put into them, only HOW you use them. In other words, shared_ptr, unqiue_ptr and weak_ptr all work. It all depends on how you will use them, just as you would normal non-COM objects.
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^