Hi,
I have a c++/cx class with a native object as a private member, how can I use it from a method :
public ref class ZipArchiveEntry sealed : IArchiveEntry
{
private:
libzippp::ZipEntry _native;
virtual IAsyncOperation<IRandomAccessStream^>^ LoadAsync();
};
/*virtual*/ IAsyncOperation<IRandomAccessStream^>^ ZipArchiveEntry::LoadAsync()
{
return create_async([this]() -> IRandomAccessStream^
{
// How can I access _native member variable?
});
}
Instead of an object stored on the stack, should I use some kind of std::shared_ptr ? In this case will I be able to access
the member variable ?