
29 Nov
2009
29 Nov
'09
4:01 p.m.
On Sun, Nov 29, 2009 at 4:48 PM, John Zwinck <jzwinck@athenacr.com> wrote:
OvermindDL1 wrote:
Instead of making a new function name, why not a function overload:
iterator erase(iterator it); // original void erase(iterator it, no_return); // no_return is an empty global created struct so you can just call m.erase(it, no_return);
Is "m.erase(it, no_return)" better than "m.erase_no_return(it)"?
Is there a precedent (in C++, not Boost) for this, other than the (IMO confusing) pre- vs. post-increment operator declarations?
operator new(std::nothrow_t) -- gpd