GCC 4.1 uses the <tr1/memory> header and GCC 4.3 uses <memory> header, I need a portable way to use shared_ptr with GCC 4.3.2 and with GCC 4.2.1, is there any way to do that without checking GCC version macros or using external libraries like Boost ?
GCC 4.1 uses the <tr1/memory> header and GCC 4.3 uses <memory> header, I need
Share
<tr1/memory>will still work with gcc 4.3. If you wan to support both versions, just use thetr1name.