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:
Dirk-Jan C. Binnema 2020-08-15 10:51:04 +03:00
parent a4d6302dab
commit 5402e00fc5
1 changed files with 2 additions and 1 deletions

View File

@ -495,7 +495,8 @@ to_string (const Mu::Sexp& sexp, bool color, size_t level = 0)
Mu::MaybeAnsi col{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::Magenta, Color::Cyan, Color::BrightGreen,
};