mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
Use compile-time constants instead of unnamed enumerations (remove "enum hack")
This commit is contained in:
@@ -19,7 +19,7 @@ template<unsigned int BITS>
|
||||
class base_blob
|
||||
{
|
||||
protected:
|
||||
enum { WIDTH=BITS/8 };
|
||||
static constexpr int WIDTH = BITS / 8;
|
||||
uint8_t data[WIDTH];
|
||||
public:
|
||||
base_blob()
|
||||
|
||||
Reference in New Issue
Block a user