astitcher commented on code in PR #382:
URL: https://github.com/apache/qpid-proton/pull/382#discussion_r1039811631
##########
cpp/src/map_test.cpp:
##########
@@ -114,6 +114,23 @@ void test_value() {
ASSERT_THROWS(conversion_error, m.value(bad));
}
+void test_copy_constructor() {
+ std::map<string, scalar> sm;
+ sm["a"] = 2;
+ sm["b"] = 3;
Review Comment:
or even (syntax might not be 100% correct):
`auto m = std::map<string,scalar>{{"a", 2}, {"b", 3}};`
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]