mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +02: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:
committed by
Victor Zverovich
parent
f7151d384b
commit
e2d87548f8
@ -344,6 +344,7 @@ long getpagesize();
|
|||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
struct buffer_size {
|
struct buffer_size {
|
||||||
|
buffer_size() = default;
|
||||||
size_t value = 0;
|
size_t value = 0;
|
||||||
buffer_size operator=(size_t val) const {
|
buffer_size operator=(size_t val) const {
|
||||||
auto bs = buffer_size();
|
auto bs = buffer_size();
|
||||||
|
Reference in New Issue
Block a user