Skip to content

Commit dec7432

Browse files
[locale.categories] Promote static const data members to constexpr
1 parent 4452e28 commit dec7432

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

source/text.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@
480480
class id;
481481
// \ref{locale.category}, type \tcode{locale::category}
482482
using category = int;
483-
static const category // values assigned here are for exposition only
483+
static constexpr category // values assigned here are for exposition only
484484
none = 0,
485485
collate = 0x010, ctype = 0x020,
486486
monetary = 0x040, numeric = 0x080,
@@ -1724,7 +1724,7 @@
17241724
const char* narrow(const char* low, const char* high, char dfault, char* to) const;
17251725

17261726
static locale::id id;
1727-
static const size_t table_size = @\impdef@;
1727+
static constexpr size_t table_size = @\impdef@;
17281728

17291729
const mask* table() const noexcept;
17301730
static const mask* classic_table() noexcept;
@@ -4445,7 +4445,7 @@
44454445
pattern neg_format() const;
44464446

44474447
static locale::id id;
4448-
static const bool intl = International;
4448+
static constexpr bool intl = International;
44494449

44504450
protected:
44514451
~moneypunct();

0 commit comments

Comments
 (0)