Add constexpr constructor for base_uint

This commit is contained in:
Scott Schurr
2021-01-13 10:42:17 -08:00
committed by Nik Bougalis
parent 95426efb8a
commit 85307b29d0
10 changed files with 215 additions and 131 deletions

View File

@@ -96,12 +96,8 @@ getBookBase(Book const& book)
uint256
getQualityNext(uint256 const& uBase)
{
static uint256 const nextq = []() {
uint256 x;
(void)x.parseHex(
"0000000000000000000000000000000000000000000000010000000000000000");
return x;
}();
static constexpr uint256 nextq(
"0000000000000000000000000000000000000000000000010000000000000000");
return uBase + nextq;
}