Skip to content

Commit

Permalink
[locale.categories] Promote static const data members to constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
frederick-vs-ja committed Dec 30, 2024
1 parent 896196c commit c339cad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/text.tex
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@
class id;
// \ref{locale.category}, type \tcode{locale::category}
using category = int;
static const category // values assigned here are for exposition only
static constexpr category // values assigned here are for exposition only
none = 0,
collate = 0x010, ctype = 0x020,
monetary = 0x040, numeric = 0x080,
Expand Down Expand Up @@ -1724,7 +1724,7 @@
const char* narrow(const char* low, const char* high, char dfault, char* to) const;

static locale::id id;
static const size_t table_size = @\impdef@;
static constexpr size_t table_size = @\impdef@;

const mask* table() const noexcept;
static const mask* classic_table() noexcept;
Expand Down Expand Up @@ -4448,7 +4448,7 @@
pattern neg_format() const;

static locale::id id;
static const bool intl = International;
static constexpr bool intl = International;

protected:
~moneypunct();
Expand Down

0 comments on commit c339cad

Please sign in to comment.