|
Boost Users : |
From: dick.bridges_at_[hidden]
Date: 2003-04-25 14:04:27
return shared_ptr<int>();
works with VC6.0 but elicits the [AFAICT] uninformative <emsg>parse error
before `;'</emsg> from gcc version 2.96 20000731 (Red Hat Linux 7.3
2.96-110).
Drat!
"Duane Murphy"
<duanemurphy_at_mac To: "Boost Users" <Boost-Users_at_[hidden]>
.com> cc:
Subject: RE: [Boost-Users] NRVO (was Re: "Correct" way to return empty shared_ptr?)
04/24/2003 09:40
AM
Please respond
to Boost-Users
--- At Thu, 24 Apr 2003 16:56:40 +0100, Ben Hutchings wrote:
<snip>
shared_ptr<int> maybe_get_a_pointer()
{
return shared_ptr<int>();
}
is perfectly reasonable and can also be optimized.
Is there more recent and complete discussion concerning this
optimization? Is naming actually required?
...Duane
Info: <http://www.boost.org>
Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
Unsubscribe: <mailto:boost-users-unsubscribe_at_[hidden]>
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net