Type: Posts; User: Peter_APIIT
Search took 0.08 seconds.
November 2nd, 2010, 01:29 AM
Thanks for your reply. I do removed the create instance method and follow your advise.
I have solve the segmentation fault problem.
May i know what tools to test whether the software program...
November 1st, 2010, 06:55 AM
First of all, thanks for your reply.
I will called the createInstance() method at main before any other class try to called the method of GetInstance();
As you said, my design is difficult to...
November 1st, 2010, 04:41 AM
Hello to all, i try to implement a thread safe singleton but it get segmentation fault after main exit.
Below is my code:
October 21st, 2010, 02:25 AM
Yes, that all i have change.
OK. I understand why.
Because my statement is assign a type to a variable rather than instantiate a type and assign to a variable.
This problem was solved but...
October 20th, 2010, 05:57 AM
My Problem has been solved with this latest source code
template <typename T, class backEndFactoryType>
October 20th, 2010, 05:32 AM
Hello to all, i have create a generic data manager which uses several data type format and different database but encountered an error to get the trait during object instantiation.
October 18th, 2010, 11:17 PM
October 18th, 2010, 06:22 AM
Hello to all, may i know what is the approach to clear a file(delete the file content) ?
October 7th, 2010, 09:02 PM
Hello to all, I have a error logger class hierarchy which used utilize the template method pattern.
I would like to create a class template that takes type of ClsErrorLogger class type as...
privatized polymorphism, restricted access and template method.
June 30th, 2010, 04:25 AM
No, placement new operator used to construct a raw memory at a specific location.
June 30th, 2010, 04:15 AM
Dear all, Is it possible for boost function to store a polymorphic function like this.
typedef boost::function<encryptionStrategy* (encryptionStrategyFactory* ) > factoryFn;
June 29th, 2010, 09:46 PM
1. What is dynamic loading ?
2. Difference between Dynamic Loading and reduce number of classes ?
AFAIK, reduce the number of sub classing means you don't actually code the class statically but...
I don't get what you mentioned here.
Amleto has answers my question.
I made a mistake, the bind1st and bind2nd only accepts binary functor where my member function is a unary functor and the find_if.
I switch to boost now.
I have practice the functor concepts through exercise but i encounter error for the below code.
The below is used to check whether a particular type of folder icon exist in the vector of...
1. Is the range argument always pass to first or second argument ?
the range argument is passed as the only argument to the predicate
which expect one argument. so there is no...
Thanks I do have a copy of the book.
I learn a lot from this topic.
Do you know what is the specific item number for the book of effective STL ?
What is the advantage of functor organization in the case of a class is derived from unary_function ?
In my opinion, functor not just "is nothing more than a wrapper to "operator<". " but...
Thanks for the reply.
What is myClass_helpe ?
Does the predicate is the unary functor created by bind1st() ?
I understand that the bind1st(functor, value), value is bind to first parameter of the functor.
AFAIK, the bind1st is...
Thanks for the reply.
The purpose of my program to use functor as argument of function is to achieve callback mechanism. I wonder whether my callback mechanism is correct in the method of attach()...
Thanks for your reply.
If you have one class template that derived from a one base class and there are no other derived classes. Then, this a overhead to declare the derived class as class...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.