@@ -1231,7 +1231,7 @@ FMT_CONSTEXPR20 auto format_decimal(Char* out, UInt value, int size)
1231
1231
1232
1232
template <typename Char, typename UInt, typename Iterator,
1233
1233
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)
1235
1235
-> format_decimal_result<Iterator> {
1236
1236
// Buffer is large enough to hold all digits (digits10 + 1).
1237
1237
Char buffer[digits10<UInt>() + 1 ];
@@ -2137,29 +2137,29 @@ class counting_iterator {
2137
2137
FMT_UNCHECKED_ITERATOR (counting_iterator);
2138
2138
2139
2139
struct value_type {
2140
- template <typename T> void operator =(const T&) {}
2140
+ template <typename T> FMT_CONSTEXPR void operator =(const T&) {}
2141
2141
};
2142
2142
2143
- counting_iterator () : count_(0 ) {}
2143
+ FMT_CONSTEXPR counting_iterator () : count_(0 ) {}
2144
2144
2145
- size_t count () const { return count_; }
2145
+ FMT_CONSTEXPR size_t count () const { return count_; }
2146
2146
2147
- counting_iterator& operator ++() {
2147
+ FMT_CONSTEXPR counting_iterator& operator ++() {
2148
2148
++count_;
2149
2149
return *this ;
2150
2150
}
2151
- counting_iterator operator ++(int ) {
2151
+ FMT_CONSTEXPR counting_iterator operator ++(int ) {
2152
2152
auto it = *this ;
2153
2153
++*this ;
2154
2154
return it;
2155
2155
}
2156
2156
2157
- friend counting_iterator operator +(counting_iterator it, difference_type n) {
2157
+ FMT_CONSTEXPR friend counting_iterator operator +(counting_iterator it, difference_type n) {
2158
2158
it.count_ += static_cast <size_t >(n);
2159
2159
return it;
2160
2160
}
2161
2161
2162
- value_type operator *() const { return {}; }
2162
+ FMT_CONSTEXPR value_type operator *() const { return {}; }
2163
2163
};
2164
2164
2165
2165
template <typename Char, typename OutputIt>
0 commit comments