utils: uuid: make operator bool explicit

Following up on 69fcc053bb

To prevent unintentional implicit conversions
e.g. to a number.

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
Message-Id: <20220216081623.830627-1-bhalevy@scylladb.com>
This commit is contained in:
Benny Halevy
2022-02-16 10:16:22 +02:00
committed by Avi Kivity
parent 742f2abfd8
commit 489e50ef3a

View File

@@ -115,7 +115,7 @@ public:
return !most_sig_bits && !least_sig_bits;
}
operator bool() const noexcept {
explicit operator bool() const noexcept {
return !is_null();
}