C++ Logo


Advanced search

Subject: [std-proposals] Named tuples for C++
From: Omer Rosler (omer.rosler_at_[hidden])
Date: 2020-02-05 06:54:44

I've being working on the "dark side of structured binding" which are
inherently not type safe.
If you get the order wrong, and the arguments are of the same type, then it
is an error detectable only at runtime.

The solution I propose is adding "named tuples" via anonymous concepts and
unnamed structs.

In order to get the proposed semantics right, more use cases should be
considered and I look to this mailing list for help.

The proposal draft is at https://github.com/OmerRosler/named_tuples/tree/0.1

STD-PROPOSALS list run by herb.sutter at gmail.com

Standard Proposals Archives on Google Groups