boostorg / container

STL-like containers from Boost
http://www.boost.org/libs/container/
Boost Software License 1.0
101 stars 113 forks source link

static_vector::operator== should be constexpr #212

Open HazardyKnusperkeks opened 2 years ago

HazardyKnusperkeks commented 2 years ago

We never allocate so everything can easily be done in constexpr, or do I miss something?

timblechmann commented 11 months ago

actually, i wonder if all of static_vector could potentially be constexpr

LocalSpook commented 4 months ago

actually, i wonder if all of static_vector could potentially be constexpr

It can be! There's a static_vector standards proposal and a reference implementation, all constexpr.