←back to thread

178 points todsacerdoti | 3 comments | | HN request time: 0.001s | source
1. rq1 ◴[] No.26340401[source]

  widgets.emplace_back(foo, bar, baz);
I honestly always thought that was the only way to use emplace_back.
replies(1): >>26340815 #
2. rocqua ◴[] No.26340815[source]
I mean, if a copy constructor exists then the other version should obviously also work. But at the same time, it isn't quite how this was meant to be used.
replies(1): >>26341559 #
3. rq1 ◴[] No.26341559[source]
Yup indeed. :)