Currently I have to work with legacy code and there is this struct:
typedef struct somesome {
int val;
std:atomic<int> index;
} somesome;
which is used inside this class:
class Blub {
protected:
somesome blobb;
public:
...
somesome getBlobb() const {return blobb;};
};
Because of the deleted copy constructor of atomic I can't return blobb, I believe... How can I return blobb the right way?