armhf build fails because the implicit conversion operator from
rgb_color to `uint8_t *' introduces an ambiguity.
In ./gdb/tui/tui-io.c, expressions such as:
init_color (next, rgb[0] * 1000 / 255, rgb[1] * 1000 / 255, ...
become ambiguous between:
constexpr uint8_t& rgb_color::operator[](std::size_t)’
operator[](uint8_t* {aka unsigned char*}, int) (built-in)
leading to a build error:
error: ISO C++ says that these are ambiguous
Fix the issue by removing the unused implicit conversion operator.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Approved-By: Tom Tromey <tom@tromey.com>
constexpr uint8_t g () const noexcept { return m_data[1]; }
constexpr uint8_t b () const noexcept { return m_data[2]; }
- constexpr operator uint8_t *() noexcept { return m_data.data (); }
constexpr size_t size () const noexcept { return m_data.size (); }
constexpr uint8_t &operator[] (std::size_t idx) noexcept