« first day (1104 days earlier)      last day (1740 days later) » 

5:24 PM
is there anything standard library or boost or anywhere which has a container which holds a static array but can vary the size dynamically up to a max value
basically, I need a container which behaves likestd::array<T, MaxN> and let's me resize the container given that the size does not exceed MaxN
I can't even think of a name for such a container
 
6:07 PM
what's the difference between explicitly defaulting a constructor and having an empty constructor body?
 
6:43 PM
@Yashas boost::container::static_vector<T, N>
> A variable-size array container with fixed capacity.
 
 
3 hours later…
9:41 PM
@Yashas A good reason to use "=default" is for when you need to delete a unique pointer that isn't a complete type in your header. In this case you'd have a "=default" somewhere where the type is iscomplete (aka a cpp file).
 

« first day (1104 days earlier)      last day (1740 days later) »