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:
Yaser Afshar 2021-03-27 16:10:03 -05:00 committed by Victor Zverovich
parent f7151d384b
commit e2d87548f8

View File

@ -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();