teslamotors / fixed-containers

C++ Fixed Containers
MIT License
352 stars 31 forks source link

Improve disabling of structured binding to be metaprogramming friendly #95

Closed alexkaratarakis closed 4 months ago

alexkaratarakis commented 4 months ago

A static_assert causes a compilation failures for any utility that was trying to check if this type is a tuple (e.g. via concepts). Setting tuple_size to 0 is sufficient for preventing structured binding; remove the static_assert

https://github.com/teslamotors/fixed-containers/issues/94