Click here to Skip to main content
15,886,026 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.

Views

Daily Counts

Downloads

Weekly Counts

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