Mark Gillard
Mark Gillard
Also, another note: This will introduce a lot of overhead in the storage, so please make this entire feature opt-in at compile-time. Every single piece of it should be gated...
The `MyConfig` node in the config above would yield `true` for `is_array_of_tables()`. (Or it should, anyway.)
Order shouldn't matter; the `is_array_of_tables()` function is just a shorthand for `val.is_array() && val.is_homogenous()`. Both `MyConfig` and `Section.Value` in your examples above should yield `true`.
Ah, I see the confusion. `toml++` doesn't deserialize a special array-of-tables type; it literally just creates a regular array and populates it with each table, hence `is_array` being true (which...