Does anyone know a good library/solution for smart references across dll boundaries?
This is the intended use case:
- Main program loads dll
- dll allocates memory and returns a smart_ref
- main program uses smart ref (always checks if it is valid)
- dll gets unloaded (lose coupling)
- main should not crash on checking smart_ref