diff options
| author | 2022-01-18 14:33:06 +0000 | |
|---|---|---|
| committer | 2022-01-18 14:33:06 +0000 | |
| commit | 40035385c6ecee61de82b18ff5f823a1ef4db871 (patch) | |
| tree | a705ad2f3097b2e1310e5e579078f5e54234681c /include/modules/cap.h | |
| parent | Use C++11-style initialisation for the entity map in httpd_stats. (diff) | |
Add constexpr to the initialisation of various const static fields.
Diffstat (limited to 'include/modules/cap.h')
| -rw-r--r-- | include/modules/cap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/modules/cap.h b/include/modules/cap.h index 2336ef486..ce03ea063 100644 --- a/include/modules/cap.h +++ b/include/modules/cap.h @@ -24,9 +24,9 @@ namespace Cap { - static const unsigned int MAX_CAPS = (sizeof(intptr_t) * 8) - 1; - static const intptr_t CAP_302_BIT = (intptr_t)1 << MAX_CAPS; - static const unsigned int MAX_VALUE_LENGTH = 100; + static constexpr unsigned int MAX_CAPS = (sizeof(intptr_t) * 8) - 1; + static constexpr intptr_t CAP_302_BIT = (intptr_t)1 << MAX_CAPS; + static constexpr unsigned int MAX_VALUE_LENGTH = 100; typedef intptr_t Ext; class ExtItem : public IntExtItem |
