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:
parent
5583459655
commit
fead2b0463
|
@ -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() {}
|
||||
|
|
Loading…
Reference in New Issue