mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
don't pollute the global namespace, move bind and shared_ptr into the lyx scope.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34264 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4654a8bf96
commit
5b916eb7c5
@ -15,16 +15,24 @@
|
||||
#if defined(_MSC_VER) && (_MSC_VER >= 1600)
|
||||
|
||||
#include <functional>
|
||||
using std::tr1::bind;
|
||||
using std::tr1::placeholders::_1;
|
||||
using std::tr1::placeholders::_2;
|
||||
using std::tr1::ref;
|
||||
|
||||
namespace lyx
|
||||
{
|
||||
using std::tr1::bind;
|
||||
using std::tr1::placeholders::_1;
|
||||
using std::tr1::placeholders::_2;
|
||||
using std::tr1::ref;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
#include "boost/bind.hpp"
|
||||
using boost::bind;
|
||||
using boost::ref;
|
||||
|
||||
namespace lyx
|
||||
{
|
||||
using boost::bind;
|
||||
using boost::ref;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -15,12 +15,20 @@
|
||||
#if defined(_MSC_VER) && (_MSC_VER >= 1600)
|
||||
|
||||
#include <memory>
|
||||
using std::tr1::shared_ptr;
|
||||
|
||||
namespace lyx
|
||||
{
|
||||
using std::tr1::shared_ptr;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
using boost::shared_ptr;
|
||||
|
||||
namespace lyx
|
||||
{
|
||||
using boost::shared_ptr;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user