Hi,

I'm constructing a static_vector<double,N>(n, default_init).

I was expecting the constructor call to vanish into just setting the start pointer and the size & capacity members (and verifying n<=N).

However, the profiler is showing some time spent in the loop inside uninitialized_default_init_alloc_n (boost/container/detail/utilities.hpp:678)

For a builtin type and default_init_t, why do we even need to invoke the allocator? Can't we just leave the memory uninitialized?

This is with Boost 1.55 and VS2008

Thanks in advance