diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2023-04-02 18:11:16 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2023-04-02 18:17:45 -0400 |
commit | 2585bcaa500f874871d8ac34a83fca638770b78f (patch) | |
tree | 70f4d585b53b303fe7d3b3d47a57521d92cc59bd /src/libutil/experimental-features.hh | |
parent | b2c9315bf2ddda4d4c5ea5a49471114553ddff87 (diff) |
Rework a few things with the experimental features list
- Use struct not `std::pair`, designated initializers
- Use `constexpr` array that we can index by enum tag
- It no longer segfaults; not sure why.
Diffstat (limited to 'src/libutil/experimental-features.hh')
-rw-r--r-- | src/libutil/experimental-features.hh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libutil/experimental-features.hh b/src/libutil/experimental-features.hh index 7c2f872c5..650fa6533 100644 --- a/src/libutil/experimental-features.hh +++ b/src/libutil/experimental-features.hh @@ -11,8 +11,9 @@ namespace nix { /** * The list of available experimental features. * - * If you update this, don’t forget to also change the map defining their string - * representation and documentation in the corresponding `.cc` file as well. + * If you update this, don’t forget to also change the map defining + * their string representation and documentation in the corresponding + * `.cc` file as well. */ enum struct ExperimentalFeature { |