Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is indeed painful. However, with C++11's move semantics, I suspect libraries will over time develop in ways that make this less painful. See nly's comment for an example.


It's mostly painful because of all the iterator pairs, not because of the allocation.

Though I agree that better libraries could clean this sort of trivial transformation up immensely.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: