Bankim Bhavsar has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/17035 )

Change subject: [gutil] update map-util to benefit from C++17
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/17035/2/src/kudu/gutil/map-util.h
File src/kudu/gutil/map-util.h:

http://gerrit.cloudera.org:8080/#/c/17035/2/src/kudu/gutil/map-util.h@446
PS2, Line 446: typename std::enable_if<
             :     std::is_same<typename Collection::key_type,
             :                  typename Collection::value_type>::value,
             :     bool>::type
What happens if the key and value types of a map happens to be same like 
map<string, string> wouldn't this emplace() function be activated instead of 
the desired try_empace() below?



--
To view, visit http://gerrit.cloudera.org:8080/17035
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I248c03e604855434ea3a0891c311461a455b428e
Gerrit-Change-Number: 17035
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Bankim Bhavsar <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Mahesh Reddy <[email protected]>
Gerrit-Comment-Date: Sat, 06 Feb 2021 23:17:43 +0000
Gerrit-HasComments: Yes

Reply via email to