mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Clean up enum_set.h header
Include a missing array header, and switch to idiomatic include guards.
This commit is contained in:
parent
e084d097d5
commit
9bc5d60eaf
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
#pragma once
|
#ifndef FISH_ENUM_SET_H
|
||||||
|
#define FISH_ENUM_SET_H
|
||||||
|
|
||||||
|
#include <array>
|
||||||
#include <bitset>
|
#include <bitset>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
|
@ -136,3 +138,5 @@ class enum_iter_t {
|
||||||
iterator_t begin() const { return iterator_t{0}; }
|
iterator_t begin() const { return iterator_t{0}; }
|
||||||
iterator_t end() const { return iterator_t{static_cast<base_type_t>(enum_count<T>())}; }
|
iterator_t end() const { return iterator_t{static_cast<base_type_t>(enum_count<T>())}; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue