mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 00:38:48 +02:00
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
1 changed files with 9 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue