All Questions
95
questions
11
votes
2
answers
1k
views
make_auto implementation for C++03 compilers
I want to provide, in the the spirit of C++11/boost make_shared and C++14 make_unique, a production-ready make_auto for C++03 compilers.
So, inspired boost's make_shared implementation for C++03 ...
6
votes
1
answer
1k
views
unique_ptr usage too unwieldy
I'm creating a MUD and am running into some design issues regarding Items.
Items are stored in an ItemDatabase after being read from a JSON file.
...
7
votes
2
answers
2k
views
Am I using copy ctors/move ctors/shared_ptr correctly?
Here is my simple example: there is a class A with few primitive members and a class B with few primitive members but also a collection of objects of type A.
This is my A class:
...
8
votes
1
answer
793
views
A pointer vector sorted by its member function
I'm asking for suggestions on a random accessed vector with allocated elements sorted by its key obtained from its member function.
I use it with Qt tree view where the access, add and deletion of ...
17
votes
2
answers
3k
views
boost::any replacement with std::unique_ptr support
I needed a boost.any look-a-like, that could handle a std::unique_ptr. I came up with this. Please provide some C++11 criticism.
...