Boost logo

Boost Users :

From: MM (finjulhich_at_[hidden])
Date: 2022-03-15 11:30:23


Hello
Should static_vector be of standard layout and/or trivially copyable?
depending on the element type

I see this outputs false

std::cout <<
std::is_standard_layout_v<boost::container::static_vector<char,32>> <<
std::endl;
std::cout <<
std::is_trivially_copyable_v<boost::container::static_vector<char,32>> <<
std::endl;

Rds,



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net