CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Peter_APIIT

Page 1 of 58 1 2 3 4

Search: Search took 0.10 seconds; generated 53 minute(s) ago.

  1. Replies
    4
    Views
    3,110

    Re: Thread Safe Singleton Segmentation Fault

    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...
  2. Replies
    4
    Views
    3,110

    Re: Thread Safe Singleton Segmentation Fault

    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...
  3. Replies
    4
    Views
    3,110

    Thread Safe Singleton Segmentation Fault

    Hello to all, i try to implement a thread safe singleton but it get segmentation fault after main exit.

    Below is my code:



    Singleton Class
    // =====================================
    class...
  4. Re: Template Template Parameter and Template Traits

    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...
  5. Re: Template Template Parameter and Template Traits

    My Problem has been solved with this latest source code



    template <typename T, class backEndFactoryType>
    class ClsSqlDataManager
    {
    public:
    ClsSqlDataManager();
    ~ClsSqlDataManager();
  6. Template Template Parameter and Template Traits

    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.



    template...
  7. Replies
    9
    Views
    2,314

    Re: Clear File Content

    Thanks for your help.
  8. Replies
    9
    Views
    2,314

    Clear File Content

    Hello to all, may i know what is the approach to clear a file(delete the file content) ?

    Thanks.
  9. Object of Class Template Instantiation

    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...
  10. Re: Do we really need private virtual function?

    privatized polymorphism, restricted access and template method.
  11. Replies
    2
    Views
    900

    Re: Polymorphic Boost Function

    Thanks codeplug.
  12. Replies
    5
    Views
    1,056

    Re: placement new operator

    No, placement new operator used to construct a raw memory at a specific location.
  13. Replies
    2
    Views
    900

    Polymorphic Boost Function

    Dear all, Is it possible for boost function to store a polymorphic function like this.



    typedef boost::function<encryptionStrategy* (encryptionStrategyFactory* ) > factoryFn;
    ...
  14. Replies
    0
    Views
    508

    Prototype Patterns Question

    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...
  15. Replies
    29
    Views
    10,921

    Re: Functor Tutorial

    I don't get what you mentioned here.
  16. Replies
    29
    Views
    10,921

    Re: Functor Tutorial

    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.


    ...
  17. Replies
    29
    Views
    10,921

    Re: Functor Tutorial

    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...
  18. Replies
    29
    Views
    10,921

    Re: Functor Tutorial

    Quote:
    My Question:
    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...
  19. Replies
    29
    Views
    10,921

    Re: Functor Tutorial

    Thanks I do have a copy of the book.
  20. Replies
    29
    Views
    10,921

    Re: Functor Tutorial

    I learn a lot from this topic.


    Do you know what is the specific item number for the book of effective STL ?

    Thanks.
  21. Replies
    29
    Views
    10,921

    Re: Functor Tutorial

    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...
  22. Replies
    7
    Views
    1,146

    Re: Class Template Inheritance

    Thanks for the reply.

    What is myClass_helpe ?
  23. Replies
    29
    Views
    10,921

    Re: Functor Tutorial

    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...
  24. Re: Declare Member Function that accept Functor

    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()...
  25. Replies
    7
    Views
    1,146

    Re: Class Template Inheritance

    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...
Results 1 to 25 of 1444
Page 1 of 58 1 2 3 4





Click Here to Expand Forum to Full Width

Featured