mu-cmd-find: don't mark rainbow constexpr
clang/libc++ don't allow constexpr:
```
mu-cmd-find.cc:498:40: error: constexpr variable cannot have non-literal type 'const std::array<Color, 6>' (aka 'const array<Mu::MaybeAnsi::Color, 6>')
constexpr std::array<Color, 6> rainbow = {
```
So let's make it mere `const` instead.
This commit is contained in:
@ -495,7 +495,8 @@ to_string (const Mu::Sexp& sexp, bool color, size_t level = 0)
|
|||||||
Mu::MaybeAnsi col{color};
|
Mu::MaybeAnsi col{color};
|
||||||
using Color = Mu::MaybeAnsi::Color;
|
using Color = Mu::MaybeAnsi::Color;
|
||||||
|
|
||||||
constexpr std::array<Color, 6> rainbow = {
|
// clang/libc++ don't allow constexpr here
|
||||||
|
const std::array<Color, 6> rainbow = {
|
||||||
Color::BrightBlue, Color::Green, Color::Yellow,
|
Color::BrightBlue, Color::Green, Color::Yellow,
|
||||||
Color::Magenta, Color::Cyan, Color::BrightGreen,
|
Color::Magenta, Color::Cyan, Color::BrightGreen,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user