python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
C++ make_unique() changing member attributes' values
I am developing a small game in SDL2 and am in the process of implementing a Quadtree for collision detection in the ECS I have written. The structure of my Quadtree class is similar to this one and t...
Nick Román
Votes: 0
Answers: 0
error with vector, unique_ptr, and push_back
I am learning smart pointers, with the following example test.cpp
#include<iostream>
#include<vector>
#include<memory>
struct abstractShape
{
virtual void Print() const=0;
};
s...
Memories
Votes: 0
Answers: 1
Performance of passing unique_ptr vs. raw pointer to functions
I am working on a program which passes message objects through a chain of functions which are dealing with the messages like doing calculations, storing, queueing, formating, ...
Till now the objects ...
Christian Springer
Votes: 0
Answers: 0
"Default delete" errors when trying to use unique_ptr with vectors for polymorphism in C++
I'm relatively new to C++, and I'm hoping someone can help me resolve an issue I'm having with unique_ptr and vectors. Essentially I'm trying to use polymorphism so that I have a vector of type "...
N A
Votes: 0
Answers: 1