mirror of https://github.com/djcb/mu.git
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:
parent
a4d6302dab
commit
5402e00fc5
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue