Created
June 30, 2012 14:04
-
-
Save xadh00m/3023874 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create the dependency list | |
DependencyList dependencyList; | |
// (...gather all required dependencies and add them to the list...) | |
// create the plugin instance | |
Plugin* plugin = createPlugin(); | |
// create a shared pointer managing the lifetime of the plugin and its dependencies | |
PluginPtr pluginPtr(plugin, DependencyDeleter<plugin>(dependencyList)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment