473,394 Members | 1,806 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Referencecounted object vs. referencecounted handles

It looks as if boost::intrusive_ptr<> didn't make the cut for C++0X.
http://www.open-std.org/JTC1/SC22/WG...2005/n1745.pdf

I guess I should take this as an indication that C++ programmers favor
referencecounted handles over reference counted objects.

This was an interesting read, and seems to propose the kind of complete
solution I was looking for. I don't know if it would be worth the trouble,
however:

http://www.open-std.org/jtc1/sc22/wg...2004/n1671.pdf

Has anybody else used the Boost Smart Pointers, and care to share opinions
or observations on this topic?
--
If our hypothesis is about anything and not about some one or more
particular things, then our deductions constitute mathematics. Thus
mathematics may be defined as the subject in which we never know what we
are talking about, nor whether what we are saying is true.-Bertrand Russell
Jul 23 '05 #1
8 1109
Steven T. Hatton wrote:
It looks as if boost::intrusive_ptr<> didn't make the cut for C++0X.
boost::intrusive_ptr hasn't been proposed, neither for TR1 nor for C++0x.
http://www.open-std.org/JTC1/SC22/WG...2005/n1745.pdf


That's TR1.

--

Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)
Jul 23 '05 #2
Pete Becker wrote:
Steven T. Hatton wrote:
It looks as if boost::intrusive_ptr<> didn't make the cut for C++0X.


boost::intrusive_ptr hasn't been proposed, neither for TR1 nor for C++0x.


I assumed that everything in the boost smart pointer library was a potential
candidate for inclusion in the standard.
http://www.open-std.org/JTC1/SC22/WG...2005/n1745.pdf


That's TR1.


That's what the document says. It also says the items described therein had
potential for inclusion in the standard. I merely assumed that if
boost:instrusive_ptr<> wasn't there, it was unlikely to be included in
C++0X.

--
If our hypothesis is about anything and not about some one or more
particular things, then our deductions constitute mathematics. Thus
mathematics may be defined as the subject in which we never know what we
are talking about, nor whether what we are saying is true.-Bertrand Russell
Jul 23 '05 #3
Steven T. Hatton wrote:
Pete Becker wrote:

That's TR1.

That's what the document says.


Funny how that works.
It also says the items described therein had
potential for inclusion in the standard. I merely assumed that if
boost:instrusive_ptr<> wasn't there, it was unlikely to be included in
C++0X.


Bad assumption.

--

Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)
Jul 23 '05 #4
Pete Becker wrote:
boost::intrusive_ptr hasn't been proposed, neither for TR1 nor for C++0x.


Sometimes there is even good news from the Standards committee.

Jul 23 '05 #5
Panjandrum wrote:
Pete Becker wrote:
boost::intrusive_ptr hasn't been proposed, neither for TR1 nor for C++0x.


Sometimes there is even good news from the Standards committee.


Why do you say that? Thus far, I haven't seen anybody provide any
substantive comment on the use of boost::intrusive_ptr<>.

--
If our hypothesis is about anything and not about some one or more
particular things, then our deductions constitute mathematics. Thus
mathematics may be defined as the subject in which we never know what we
are talking about, nor whether what we are saying is true.-Bertrand Russell
Jul 23 '05 #6
Steven T. Hatton wrote:
Thus far, I haven't seen anybody provide any
substantive comment on the use of boost::intrusive_ptr<>.


Guess why?

Jul 23 '05 #7
Panjandrum wrote:
Steven T. Hatton wrote:
Thus far, I haven't seen anybody provide any
substantive comment on the use of boost::intrusive_ptr<>.


Guess why?


Nobody knows how to use them.
--
If our hypothesis is about anything and not about some one or more
particular things, then our deductions constitute mathematics. Thus
mathematics may be defined as the subject in which we never know what we
are talking about, nor whether what we are saying is true.-Bertrand Russell
Jul 23 '05 #8
Steven T. Hatton wrote:
Panjandrum wrote:

Steven T. Hatton wrote:
Thus far, I haven't seen anybody provide any
substantive comment on the use of boost::intrusive_ptr<>.


Guess why?

Nobody knows how to use them.


I know how to use them and I do use them. Though only for COM
stuff. I think maybe the reason why so few people care for
reference counted objects, or better: for a predefined
smart pointer for reference counted objects, is, that:
a) few people use ref counted objects
b) even fewer libs exist that use ref counted objects
c) it's so easy to roll your own implementation

And ref counted objects tend to get really bitchy when you
build cycles. Therefor their usefulness is very limited in
many situations.
Jul 23 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: monkey king | last post by:
I have a given dll file(PDFCreator.dll) - probably generated by VC++. I want to use its method(PDFCreator()) in dotNet environment. It works well in WindiowsApplication, but bad in WebApplication...
3
by: Alex | last post by:
I'm having a problem porting an ASP solution to ASPX. In the ASP solution I'm accessing a DCOM server, create sub DCOM objects and call functions from VB script on the ASP pages. The DCOM object...
2
by: Giovanni Bassi | last post by:
Hello All, I have encountered a problem. I am using visual inheritance and my base form adds an event handler on Form Load using the AddHandler Keyword. The problem is that if the Event...
1
by: Angus Lepper | last post by:
I'm writing a stock ticker for a stock market simulation, and can load the data into the xmlreader in the first place, but can't figure out how to refresh/update the data in it. Any ideas? Code:...
11
by: Rourke Eleven | last post by:
I have looked and searched. What good is the databind property on Radiobuttons? How does one go about actually using it? What is a good resource on this? I understand that I can easily get/set...
9
by: Remulac | last post by:
Hello, I'm trying to get the value out of a dropdown list box and assign it to a variable. When I click on the list box, I invoke this line of code. I get the error, "Object reference not set...
4
by: Supra | last post by:
I am doing irc chat similar to mirc chat if i connected to irc.webamster.com i had no problem. but if connected to eu.undernet.org. i got error....somthing bug me! O:-) 'February 2004 'An...
0
by: Deepak C.G via .NET 247 | last post by:
I want to dispose the image object in my child form, unless I won't dispose this object i can't delete the image file in my folder. I get this error in MDIparent form "An unhandled exception...
8
by: ST | last post by:
Hello everyone, Can anyone help me with this error above when I debug my web app project in vstudio.net?? I can't figure it out! It was working fine for months, and now all of a sudden it's not!!...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.