shared_ptr.h Source File

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

shared_ptr.h
Go to the documentation of this file.

    00001 /**********************************************************************
    00002 shared_ptr.h - shared_ptr class.
    00003
    00004 Copyright (C) Copyright (C) 2007 by Chris Morley
    00005
    00006 This program is free software; you can redistribute it and/or modify
    00007 it under the terms of the GNU General Public License as published by
    00008 the Free Software Foundation version 2 of the License.
    00009
    00010 This program is distributed in the hope that it will be useful,
    00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00013 GNU General Public License for more details.
    00014 ***********************************************************************/
    00015
    00016 #ifndef OB_SHARED_PTR_H
    00017 #define OB_SHARED_PTR_H
    00018
    00019 #ifdef USE_BOOST
    00020   #include <boost/shared_ptr.hpp>
    00021   #define shared_ptr boost::shared_ptr
    00022 #else
    00023   #include <memory>
    00024   #if __GNUC__ == 4  //&& __GNUC_MINOR__ < 3  removed at the suggestion of Konstantin Tokarev
    00025     #include <tr1/memory>
    00026   #endif
    00027   using std::tr1::shared_ptr;
    00028 #endif
    00029
    00030 #endif // OB_SHARED_PTR_H
    00031

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines