Make the CDC connector C++0x compliant

As CentOS 6 is supported, the CDC connector ought to build on non-C++11
systems.
This commit is contained in:
Markus Mäkelä
2018-01-24 10:55:16 +02:00
parent ed81757c04
commit 522cbab23d
2 changed files with 9 additions and 8 deletions

View File

@ -19,7 +19,7 @@
#include <cstdint>
#include <string>
#include <memory>
#include <tr1/memory>
#include <vector>
#include <map>
#include <algorithm>
@ -34,10 +34,10 @@ const char* TIMEOUT = "Request timed out";
// The typedef for the Row type
class Row;
typedef std::shared_ptr<Row> SRow;
typedef std::tr1::shared_ptr<Row> SRow;
typedef std::vector<std::string> ValueVector;
typedef std::shared_ptr<ValueVector> SValueVector;
typedef std::tr1::shared_ptr<ValueVector> SValueVector;
typedef std::map<std::string, std::string> ValueMap;
// A class that represents a CDC connection