You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[C++] Implement ObjectName equivalent for memory classes #133
//protected: override std::string ObjectName//{// get => std::string("Heap stored memory block at ").append(Platform::Converters::To<std::string>(Pointer)).append(" address.");//}
Problem:
In C# every memory class overrides DisposableBase.ObjectName, which is used in ObjectDisposedException messages and diagnostics. The C++ translation left these overrides as comments, so C++ objects have no readable description.
Original C# texts:
DirectMemoryAsArrayMemoryAdapter: Array as memory block at '{Pointer}' address.
FileArrayMemory: File stored memory block at '{path}' path.
FileMappedResizableDirectMemory: File stored memory block at '{Path}' path.
HeapResizableDirectMemory: Heap stored memory block at {Pointer} address.
TemporaryFileMappedResizableDirectMemory: Temporary file stored memory block at '{Path}' path.
Suggestion:
Provide an idiomatic C++ equivalent (for example a std::string ObjectName() const member, or operator<</std::formatter specializations) with these texts, use it in error messages, and add tests.
Activity
Convert remaining commented-out C++ code to issues #132, #133