Skip to content

Commit

Permalink
user-defined constructor
Browse files Browse the repository at this point in the history
user-defined constructor added to prevent Intel compilers
warnings. According to the standard, objects need to have a
user-defined constructor if instances are delcared const.
  • Loading branch information
yafshar authored and vitaut committed Mar 28, 2021
1 parent f7151d3 commit e2d8754
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/fmt/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ long getpagesize();
namespace detail {

struct buffer_size {
buffer_size() = default;
size_t value = 0;
buffer_size operator=(size_t val) const {
auto bs = buffer_size();
Expand Down

0 comments on commit e2d8754

Please sign in to comment.