Skip to content

Commit fad46b4

Browse files
committed
Add spaceship equality to text_t/data_t.
1 parent 4249323 commit fad46b4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/bitcoin/system/types.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ class data_t
191191
{
192192
}
193193

194+
CONSTEVAL bool operator==(const data_t&) const noexcept = default;
194195
const std::array<uint8_t, Size - 1> data;
195196

196197
private:
@@ -213,6 +214,7 @@ class text_t
213214
{
214215
}
215216

217+
CONSTEVAL bool operator==(const text_t&) const noexcept = default;
216218
const std::array<char, Size - 1> text;
217219

218220
private:

0 commit comments

Comments
 (0)