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"
.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@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/