twin: Add constructor from two objects

This commit is contained in:
Ion Gaztañaga
2021-01-15 20:43:59 +01:00
parent f65f864f0e
commit 5c5f596d12

View File

@@ -35,6 +35,10 @@ struct twin
: first(), second() : first(), second()
{} {}
twin(const type &f, const type &s)
: first(f), second(s)
{}
T first; T first;
T second; T second;
}; };