Click here to Skip to main content
15,885,216 members
Articles / Programming Languages / XML

How to Ensure Proper Dynamic Library Boundary Crossing for Objects using Smart Pointers' Custom Deleters

,
Rate me:
Please Sign up or sign in to vote.
4.83/5 (25 votes)
24 Feb 2023MIT4 min read 55.1K   560   48  
Solution using smart pointers' custom deleters
Ensuring that objects allocated in one dynamic library are deleted by the same library has always been a challenge. Solutions prior to the advent of C++11 often make the usage of the library cumbersome. This is a solution using smart pointers' custom deleters.

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
Software Developer (Senior) CAE Inc.
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Written By
Software Developer (Senior)
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions