Skip to main content

All Questions

Tagged with
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 ...
paercebal's user avatar
  • 281
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. ...
IAE's user avatar
  • 765
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: ...
Jack Willson's user avatar
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 ...
user1899020's user avatar
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. ...
user1095108's user avatar
  • 1,434

15 30 50 per page
1
3 4 5 6
7