Skip to content

Commit c339cad

Browse files
[locale.categories] Promote static const data members to constexpr
1 parent 896196c commit c339cad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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;
@@ -4448,7 +4448,7 @@
44484448
pattern neg_format() const;
44494449

44504450
static locale::id id;
4451-
static const bool intl = International;
4451+
static constexpr bool intl = International;
44524452

44534453
protected:
44544454
~moneypunct();

0 commit comments

Comments
 (0)