18 Mar
2017
18 Mar
'17
2:46 p.m.
Antony Polukhin wrote:
template<size_t N> using fixed_stacktrace = basic_stacktrace<std::array<frame, N>>;
This won't work, because std::array has no push_back/pop_back methods.
Ordinarily it won't; one would need to use boost::container::static_vector. But if we go this way, it should be specialized to work with std::array as well.
Is boost::container::vector bothers you?
boost::container::vector is not much of a problem; templating on a container just allows fixed storage without having to write a fixed storage allocator.