Boost logo

Boost :

From: Emil Dotchevski (emil_at_[hidden])
Date: 2008-08-06 18:25:17

Does anyone besides me find this code useful:

It could go in boost/handle.hpp and could be used to manage any type
of handle in a shared_ptr, for example one could do:

shared_ptr<int> s;
  int sockfd = socket(PF_INET,SOCK_STREAM,0);
  if( sockfd!=-1 )

It would also work with HWND, so you get a shared_ptr<HWND> (even
without make_handle you could still use shared_ptr<HWND__> but
strictly speaking you'd be exploiting implementation details with

Emil Dotchevski
Reverge Studios, Inc.

Boost list run by bdawes at, gregod at, cpdaniel at, john at