2010-04-22 11:37:32 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file shared_ptr.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Peter Kümmel
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LYX_SHARED_PTR_H
|
|
|
|
#define LYX_SHARED_PTR_H
|
|
|
|
|
2010-06-05 11:06:13 +00:00
|
|
|
#include "checktr1.h"
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef LYX_USE_TR1
|
2010-04-22 11:37:32 +00:00
|
|
|
|
|
|
|
#include <memory>
|
2010-04-22 15:56:20 +00:00
|
|
|
|
2010-06-05 11:06:13 +00:00
|
|
|
#ifdef __GNUC__
|
|
|
|
#include <tr1/memory>
|
|
|
|
#endif
|
|
|
|
|
2010-04-22 15:56:20 +00:00
|
|
|
namespace lyx
|
|
|
|
{
|
|
|
|
using std::tr1::shared_ptr;
|
|
|
|
}
|
2010-04-22 11:37:32 +00:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#include <boost/shared_ptr.hpp>
|
2010-04-22 15:56:20 +00:00
|
|
|
|
|
|
|
namespace lyx
|
|
|
|
{
|
|
|
|
using boost::shared_ptr;
|
|
|
|
}
|
2010-04-22 11:37:32 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|