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

Search:

Type: Posts; User: PredicateNormative

Search: Search took 0.06 seconds.

  1. Re: Copy constructor (invoking implicit one in user defined?)

    Yep, I think that's a pretty accurate description.:)
  2. Re: Copy constructor (invoking implicit one in user defined?)

    True enough, but that was the reason for the second part of that post ;)

    I guess the point that I was trying to make is that it is possible to do by separating out the members into a protected...
  3. Re: Copy constructor (invoking implicit one in user defined?)

    I agree on the container, or the user defined class, but the smart pointer will most likely change the intended behaviour of the object since both the original and the copy will be pointing to the...
  4. Re: Copy constructor (invoking implicit one in user defined?)

    The normal way to not have to worry about how to assign vs how to copy construct is to write a swap function:



    template <typename T>
    class Buffer
    {
    public:
    Buffer(size_t size)
    ...
Results 1 to 4 of 4





Click Here to Expand Forum to Full Width

Featured