@@ -1231,7 +1231,7 @@ FMT_CONSTEXPR20 auto format_decimal(Char* out, UInt value, int size)
12311231
12321232template <typename Char, typename UInt, typename Iterator,
12331233 FMT_ENABLE_IF (!std::is_pointer<remove_cvref_t <Iterator>>::value)>
1234- inline auto format_decimal (Iterator out, UInt value, int size)
1234+ FMT_CONSTEXPR inline auto format_decimal (Iterator out, UInt value, int size)
12351235 -> format_decimal_result<Iterator> {
12361236 // Buffer is large enough to hold all digits (digits10 + 1).
12371237 Char buffer[digits10<UInt>() + 1 ];
@@ -2137,29 +2137,29 @@ class counting_iterator {
21372137 FMT_UNCHECKED_ITERATOR (counting_iterator);
21382138
21392139 struct value_type {
2140- template <typename T> void operator =(const T&) {}
2140+ template <typename T> FMT_CONSTEXPR void operator =(const T&) {}
21412141 };
21422142
2143- counting_iterator () : count_(0 ) {}
2143+ FMT_CONSTEXPR counting_iterator () : count_(0 ) {}
21442144
2145- size_t count () const { return count_; }
2145+ FMT_CONSTEXPR size_t count () const { return count_; }
21462146
2147- counting_iterator& operator ++() {
2147+ FMT_CONSTEXPR counting_iterator& operator ++() {
21482148 ++count_;
21492149 return *this ;
21502150 }
2151- counting_iterator operator ++(int ) {
2151+ FMT_CONSTEXPR counting_iterator operator ++(int ) {
21522152 auto it = *this ;
21532153 ++*this ;
21542154 return it;
21552155 }
21562156
2157- friend counting_iterator operator +(counting_iterator it, difference_type n) {
2157+ FMT_CONSTEXPR friend counting_iterator operator +(counting_iterator it, difference_type n) {
21582158 it.count_ += static_cast <size_t >(n);
21592159 return it;
21602160 }
21612161
2162- value_type operator *() const { return {}; }
2162+ FMT_CONSTEXPR value_type operator *() const { return {}; }
21632163};
21642164
21652165template <typename Char, typename OutputIt>
0 commit comments