mirror of
https://github.com/NixOS/nix
synced 2025-06-30 03:23:16 +02:00
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.
This commit is contained in:
parent
b2c9315bf2
commit
2585bcaa50
3 changed files with 142 additions and 82 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue