August 19th, 2013, 07:34 PM
Could you be more specific?
August 19th, 2013, 06:27 PM
It came as a big surprise to me that upcasting of a shared_ptr (as a const reference parameter in a function call) induced a reference counter increment.
By experiment I've found that the...
August 19th, 2013, 06:12 PM
In your exercise, should the answer be based on the Fibonacci Heap in general or on a specific implementation you got handed out?
August 19th, 2013, 04:05 PM
Implementations of standard data structures are so refined after years of evolution that you cannot hope to improve on them by changing details.
Why not just stick to the recipe and get the...
August 19th, 2013, 03:15 AM
Since the sqrt function you're referring to belongs to the C++ standard library you can expect it to work within the bounds of all mathematically relevant types that belong to standard C++, like say...
August 18th, 2013, 03:57 PM
There are C/C++ to Java converters available both free and commersial. Just search the net.
You could also engage a consulting firm to do your work for you.
August 14th, 2013, 09:31 AM
I think I'm on to something here. The std::move function seems to prevent the unneccessary copy from being made,
This is ugly and tedious so the move...
August 14th, 2013, 01:34 AM
Okay I was wrong. The upcast in the call induces a copying operation. It seems a new smart pointer of the supertype is created and passed in the call.
I think formally this has to do with the...
August 13th, 2013, 01:43 AM
That's because otherwise the objects would be copied into the vector. The Employee object would work fine but not the Manager object. It's because when it's copied into an Employee storage position...
August 12th, 2013, 11:26 PM
That's not true. Since the smart pointer is passed to add_child by const reference the call itself won't increment the reference counter because the smart pointer is not being copied (like it would...