I’m looking for independent implementation of boost/tr1 shared_ptr, weak_ptr and enable_shared_from_this.
I need:
- Boost independent very small implementation of these features.
- I need support of only modern compilers like GCC-4.x, MSVC-2008, Intel not things like MSVC6 or gcc-3.3
- I need it to be licensed under non-copyleft LGPL compatible license like Boost/Mit/3-clause BSD.
So I can include it in my library.
Note – it is quite hard to extract shared_ptr from boost, at least BCP gives about 324 files…
I extracted shared_ptr from Boost to use it separately, and it was definitely fewer than 300 files. That was 3 years ago however so things may have changed (maybe there are more files in the config folder these days?). What I needed for the shared_ptr was:
I don’t think weak_ptr and enable_shared_from_this will add a lot of files to that.