clover: Add a simple compat::pair.

std::pair is not c++98/c++11 safe.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
EdB 2014-10-09 01:06:48 +03:00 committed by Francisco Jerez
parent 5583459655
commit fead2b0463
1 changed files with 9 additions and 0 deletions

View File

@ -412,6 +412,15 @@ namespace clover {
mutable vector<char> v;
};
template<typename T, typename S>
struct pair {
pair(T first, S second) :
first(first), second(second) {}
S first;
T second;
};
class exception {
public:
exception() {}