For the classes that create shared pointers to themselves, it is no longer possible to allocate them on the stack as they should be managed by smart pointers only. ‘allowed_heap_only_types’ porter option is supported to mark such classes. For .Net classes implementation, such classes are already marked in default configuration files. For ported classes, these cases are auto-detected.
WeakReference class was fixed. nullptr (non)equality operators were added. Missing includes weak_reference.h is now being generated by the porter. Porter now properly recognizes it as a value type.