Boost logo

Boost Users :

Subject: [Boost-users] make_shared and custom deleter
From: Dominique Devienne (ddevienne_at_[hidden])
Date: 2009-05-27 18:47:21

I was thinking of using the new make_shared, but I'm already using a
custom deleter (shared instances have private destructora and declare
the custom deleter as a friend, and new instances are returned wrapped
in shared_ptr, thus no explicit new or delete should be possible).

Looking at make_shared, I can't see a way to use both at the same
time. Am I out of luck? Thanks, --DD

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at