Unverified Commit 360e6cb4 authored by Hongzhi (Steve), Chen's avatar Hongzhi (Steve), Chen Committed by GitHub
Browse files

mark explicit (#4813)


Co-authored-by: default avatarSteve <ubuntu@ip-172-31-34-29.ap-northeast-1.compute.internal>
parent 1e8c645d
......@@ -43,7 +43,7 @@ namespace {
template<typename IdType>
class DeviceNodeMapMaker {
public:
DeviceNodeMapMaker(
explicit DeviceNodeMapMaker(
const std::vector<int64_t>& maxNodesPerType) :
max_num_nodes_(0) {
max_num_nodes_ = *std::max_element(maxNodesPerType.begin(),
......
......@@ -93,7 +93,7 @@ class MessageQueue {
* \param queue_size size (bytes) of message queue
* \param num_producers number of producers, use 1 by default
*/
MessageQueue(int64_t queue_size /* in bytes */,
explicit MessageQueue(int64_t queue_size /* in bytes */,
int num_producers = 1);
/*!
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment