by: ctick |
last post by:
Are there any advantages of using boost::shared_ptr other than auto_ptr from
standard library?
|
by: PengYu.UT |
last post by:
Hi,
I saw the following code:
Composition *quick = new Composition(new SimpleCompositor);
SimpleCompositor and Composition are both classes.
My question is how to delete the newed...
|
by: krema2ren |
last post by:
Hi
I've the following header problem that I need two classes to know each
other through a boost::shared_ptr. Does any of you smart guys have a
solution?
A.h
----------------------
#include...
|
by: kathy |
last post by:
I have a vector which I save the pointer.
function()
{
std::vector <CMyData*> vpMyData;
vpMyData.push_back(new CMyData(0));
vpMyData.push_back(new CMyData(1));
vpMyData.push_back(new...
|
by: yinglcs |
last post by:
I am reading the Boost scoped_ptr library, and I wonder what is the
advantage of using that.
Here is an example from Boost.org web site:
#include <boost/scoped_ptr.hpp>
#include <iostream>
...
|
by: Bit Byter |
last post by:
I have a 'root' object that serves as a container/parent for several
other objects like so:
class myRoot {
public:
myRoot();
virtual ~myRoot();
void* operator new(size_t);
operator...
|
by: Yong Hu |
last post by:
Does the smart pointer never lead to memory leak?
Thanks,
|
by: toton |
last post by:
Hi,
I am using some smart_ptr (from Axter) in a STL vector. However I
need a custom deleter other than destructor (In my case a free member
function, which exists due to Historic reason only, do...
|
by: none |
last post by:
Hello,
At work we have someone who believes that using new&delete is a hideous
sin. He believes it should never be used. Instead scoped_ptr is the
enlightened way.
Does anyone have a view?
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|