diff --git a/include/libpmemobj++/allocation_flag.hpp b/include/libpmemobj++/allocation_flag.hpp index 689268e27c..644c3c5277 100644 --- a/include/libpmemobj++/allocation_flag.hpp +++ b/include/libpmemobj++/allocation_flag.hpp @@ -61,7 +61,7 @@ struct allocation_flag { /** * Emplace constructor. */ - allocation_flag(uint64_t val) : value(val) + explicit allocation_flag(uint64_t val) : value(val) { } @@ -124,7 +124,7 @@ struct allocation_flag_atomic { /** * Emplace constructor. */ - allocation_flag_atomic(uint64_t val) : value(val) + explicit allocation_flag_atomic(uint64_t val) : value(val) { }