variant icon indicating copy to clipboard operation
variant copied to clipboard

C++11/C++14 Variant

Results 34 variant issues
Sort by recently updated
recently updated
newest added

There are special cases for `std::reference_wrapper` and `recursive_wrapper` in two places. One is in the `get()` call, the other in `unwrapper` helper class used by the visitor apply functions. This...

`get_type_index` returns index in reversed order which is confusing. `which` method is complaint with `boost::variant`. In order to remove `get_type_index` we need to address last remaining issue - `invalid_type` value....

enhancement
interface change

The constructor for `variant` is declared `noexcept` which is only true if the constructor for the underlying type is noexcept. Because we don't know which type that will be we...

interface change

mapbox variant fails build with GCC 15 as reported in [Debian Bug #1114197](https://bugs.debian.org/1114197): ``` [...] /usr/include/c++/15/bits/char_traits.h:352:16: error: '((const std::char_traits::char_type*)((char*)&temp + offsetof(boost::variant,boo st::variant::storage_.boost::aligned_storage::.boost::detail::aligned_storage::aligned_storage_imp::data_)))[16]' may be used uninitialized [-Werror=maybe-uninitialized] 352 | __c1...