mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-28 15:28:35 +00:00
user-defined constructor
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.
This commit is contained in:
parent
f7151d384b
commit
e2d87548f8
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user