Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nhaehnle
on April 11, 2014
|
parent
|
context
|
favorite
| on:
C++ – From goto to std::transform
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.
humanrebar
on April 11, 2014
[–]
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: