Fix Struct::iterator test to be order agnostic

This commit is contained in:
Simon Hausmann 2021-03-23 17:49:28 +01:00
parent 715c9f407e
commit b51549ab58
2 changed files with 17 additions and 12 deletions

View file

@ -120,6 +120,8 @@ public:
/// references become invalid when the iterator or the Struct is changed, so make sure to make
/// copies if you want to retain the name or value.
///
/// Note that the order in which the iterator exposes the fields is not defined.
///
/// If you're using C++ 17, you can use the convenience destructuring syntax to extract the name
/// and value in one go:
///