Replace TR1 headers with standard headers
Now that the C++11 standard is the default one, we can remove the TR1 headers and classes.
This commit is contained in:
@ -24,7 +24,7 @@
|
||||
#include <list>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <tr1/memory>
|
||||
#include <memory>
|
||||
|
||||
#include <maxscale/buffer.hh>
|
||||
#include <maxscale/pcre2.h>
|
||||
@ -128,7 +128,7 @@ private:
|
||||
bool m_mapped; /**< Whether the backend has been mapped */
|
||||
};
|
||||
|
||||
typedef std::tr1::shared_ptr<SRBackend> SSRBackend;
|
||||
typedef std::shared_ptr<SRBackend> SSRBackend;
|
||||
typedef std::list<SSRBackend> SSRBackendList;
|
||||
|
||||
}
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
#include <maxscale/cppdefs.hh>
|
||||
|
||||
#include <tr1/unordered_map>
|
||||
#include <unordered_map>
|
||||
#include <string>
|
||||
#include <list>
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
using namespace maxscale;
|
||||
|
||||
/** This contains the database to server mapping */
|
||||
typedef std::tr1::unordered_map<std::string, SERVER*> ServerMap;
|
||||
typedef std::unordered_map<std::string, SERVER*> ServerMap;
|
||||
|
||||
class Shard
|
||||
{
|
||||
@ -96,7 +96,7 @@ private:
|
||||
time_t m_last_updated;
|
||||
};
|
||||
|
||||
typedef std::tr1::unordered_map<std::string, Shard> ShardMap;
|
||||
typedef std::unordered_map<std::string, Shard> ShardMap;
|
||||
|
||||
class ShardManager
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user