twin: Add constructor from two objects

This commit is contained in:
Ion Gaztañaga committed 2021-01-15 20:43:59 +01:00
1 parent f65f864f0e
commit 5c5f596d12
1 file changed
+4
+4
View File
@@ -35,6 +35,10 @@ struct twin
: first(), second()
{}
twin(const type &f, const type &s)
: first(f), second(s)
{}
T first;
T second;
};