title: Alternative to boost::shared_ptr in an embedded environment
body: <p>I'm using C++ in an embedded linux environment which has <code>GCC version 2.95</code>.</p>
  
  <p>I just can't extract <code>boost::shared_ptr</code> files with bcp, it is just too heavy.</p>
  
  <p>What I'd like would be a simple smart pointer implementation of <code>boost::shared_ptr</code> but without all <code>boost</code> overheads (if it is possible...).</p>
  
  <p>I could come up with my own version reading boost source but I fear missing one or more points, it seems easy to make a faulty smart pointer and I can't afford to have a buggy implementation.</p>
  
  <p>So, does a "simple" implementation or implementation example of <code>boost::shared_ptr</code> (or any reference counting equivalent smart pointer) exists that I could use or that I could take as an inspiration? </p>