Own AddRef and Release for Boost shared_ptr

I once heard that it is possible to map the Boost shared_ptr or intrusive_ptr reference add and release functions to my own implementations of add and release reference functions.

Is this really possible? If yes, can anyone point me to some resources regarding this feature?



Not with shared_ptr itself; the only behaviour you can specify is the deleter. There's intrusive_ptr if you want to manage your own reference counting.

Need Your Help

Live chat application using Node JS Socket IO and JSON file

json node.js socket.io forever

I am developing a Live chat application using Node JS, Socket IO and JSON file. I am using JSON file to read and write the chat data. Now I am stuck on one issue, When I do the stress testing i.e p...

Activating Bottom AppBar from Code behind in WinRT

c# xaml windows-8 windows-runtime winrt-xaml

Does anyone know of a way to activate the bottom AppBar from code-behind when we select a tile? I found this, but I could not find a C# equivalent. I've browsed around a bunch of samples but no luck