id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 12273,boost::container::static_vector max_size() and capacity() should be constant expressions,jim.king@…,Ion Gaztañaga,"The capacity of a static_vector is a compile time constant. One should be able to retrieve the capacity at compile time as a constant expression. In the current implementation, one must execute a runtime method of either capacity() or max_size() to obtain the capacity. There are use cases where one would want to create another container that has the same capacity as the static_vector will have, so to improve ease of use I would propose adding: BOOST_STATIC_CONSTANT(size_type, capacity = Capacity) BOOST_STATIC_CONSTANT(size_type, max_size = Capacity) following the set of typedefs in the class.",Feature Requests,closed,Boost 1.62.0,container,Boost 1.61.0,Optimization,fixed,,