Original Post
🔒 Locked
boost::shared_ptr?
Advertisement
boost::shared_ptr is implemented in one file: boost::shared_ptr.hpp, although this file requires a few other files. Here's what it #includes in my version (1.32) (1.33 is the current stable version).
I'm not sure about just downloading shared_ptr, since it requires other headers. But you could download it all and use only the shared_ptr portion of it. In its entirety, the boost 1.33 library is around 10 megabytes when compressed.
include <boost/config.hpp> // for broken compiler workarounds#if defined(BOOST_NO_MEMBER_TEMPLATES) && !defined(BOOST_MSVC6_MEMBER_TEMPLATES)#include <boost/detail/shared_ptr_nmt.hpp>#else#include <boost/assert.hpp>#include <boost/checked_delete.hpp>#include <boost/throw_exception.hpp>#include <boost/detail/shared_count.hpp>#include <boost/detail/workaround.hpp>#include <memory> // for std::auto_ptr#include <algorithm> // for std::swap#include <functional> // for std::less#include <typeinfo> // for std::bad_cast#include <iosfwd> // for std::basic_ostreamI'm not sure about just downloading shared_ptr, since it requires other headers. But you could download it all and use only the shared_ptr portion of it. In its entirety, the boost 1.33 library is around 10 megabytes when compressed.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement