Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct test
- {
- int a;
- int b;
- std::string str;
- }
- int main()
- {
- std::map<int, test> test_map;
- test_map[0] = test(1, 2, "test1"); // This is the line in question
- // Or it might be more like: test_map[0] = test{1, 2, "test1"};
- return 0;
- }
Add Comment
Please, Sign In to add comment