Search:

Type: Posts; User: Angelina

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,293

    Thanks

    Thanks
  2. Replies
    3
    Views
    1,293

    Constructing Base Class Objects

    Hello all,

    Does anyone know why can I not put the call to the constructor of a base within the body of the derived class constructor? Here an example:


    class A
    {
    int a;
    public:
    ...
  3. Replies
    26
    Views
    2,626

    I'm not very familiar with the boost library and...

    I'm not very familiar with the boost library and not keen on mixing that in now.

    I was wondering if there is any more "standard" solution?

    Yes, my objects are too big to be OK to copy
  4. Replies
    26
    Views
    2,626

    I think there is a missunderstanding here: The...

    I think there is a missunderstanding here:

    The problem is not that I am not passing the container as reference to functions, but that I do not want to copy on insertion and thus use containers of...
  5. Replies
    26
    Views
    2,626

    you can put it that way I do not want to go to...

    you can put it that way

    I do not want to go to every function and change

    my_vector_of_obgects[i]

    to

    *(my_vector_of_pointers_to_obgects[i])
  6. Replies
    26
    Views
    2,626

    But objects are copied on insertion into...

    But objects are copied on insertion into containers
  7. Replies
    26
    Views
    2,626

    Of course I meant vector it was a typing...

    Of course I meant vector<C*> it was a typing mistake, sorry.

    Vectors of references do not exist. The reason is that a reference is just an alternative name for an object, so that makes no sense.
    ...
  8. Replies
    26
    Views
    2,626

    vector and vector

    Hello,

    I have writen a lot of functions working on containers of objects. Now I've decided it's better not to copy the objects in the containers, but to use conteiners of pointers.

    Is there...
Results 1 to 8 of 8