Boost has variant, which is also a discriminated Union though the visitor pattern ergonomics aren&#x27;t quite as nice as result in rust or doing the same thing with enums in swift. There&#x27;s work to get something like variant into the standard.