Skip to content

Commit

Permalink
Further minor constexpr tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
kamrann committed Sep 23, 2024
1 parent 076afe3 commit 7226c0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/fmt/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -1790,7 +1790,7 @@ template <typename T> class buffer {
struct buffer_traits {
constexpr explicit buffer_traits(size_t) {}
constexpr auto count() const -> size_t { return 0; }
FMT_CONSTEXPR auto limit(size_t size) -> size_t { return size; }
constexpr auto limit(size_t size) const -> size_t { return size; }
};

class fixed_buffer_traits {
Expand Down
2 changes: 1 addition & 1 deletion include/fmt/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ namespace detail {
struct buffer_size {
constexpr buffer_size() = default;
size_t value = 0;
constexpr auto operator=(size_t val) const -> buffer_size {
FMT_CONSTEXPR auto operator=(size_t val) const -> buffer_size {
auto bs = buffer_size();
bs.value = val;
return bs;
Expand Down

0 comments on commit 7226c0e

Please sign in to comment.