martinzink commented on code in PR #1612:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1612#discussion_r1270534444
##########
libminifi/include/utils/FlatMap.h:
##########
@@ -138,7 +134,9 @@ class FlatMap{
return data_.size();
}
- V& operator[](const K& key) {
+ template<typename T>
+ requires std::constructible_from<K, T> && std::equality_comparable_with<K, T>
Review Comment:
operator[] insert a default constructred value at the specified key if its
not already there. for that we need to create the actual keytype thats why we
need the constraint
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]