PIFile::openTemporary on Windows

PIPair from std::tuple
This commit is contained in:
2021-12-24 14:41:18 +03:00
parent 92b20f6f46
commit 3c8ccf357b
3 changed files with 10 additions and 2 deletions

View File

@@ -33,6 +33,7 @@ template<typename Type0, typename Type1>
class PIPair {
public:
PIPair() {first = Type0(); second = Type1();}
PIPair(std::tuple<Type0, Type1> tuple) {first = std::get<0>(tuple); second = std::get<1>(tuple);}
PIPair(const Type0 & value0, const Type1 & value1) {first = value0; second = value1;}
Type0 first;
Type1 second;