Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions core/base/inc/TColor.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ class TColorNumber {
public:
TColorNumber(Int_t color) : fNumber{color} {}
TColorNumber(std::string const &color);
// We also require an overload for C-style strings. That's because the
// TColorNumber is designed to be constructed implicitly, and C++ won't do
// two user-defined conversions in a single implicit conversion chain.
inline TColorNumber(const char *color) : TColorNumber{std::string{color}} {}
TColorNumber(std::array<Float_t, 3> rgb);
Int_t number() const { return fNumber; }

Expand Down
Loading