Search code examples
Program with std::variant works in msvc but not in gcc...


c++initializationc++17variantstd-variant

Read More
Weird result of std::variant...


c++c++17conditional-operatorvariantstd-variant

Read More
gcc 10 refuse implict conversions for std::variant constructor...


c++gccc++17std-variant

Read More
Container of std::variant of callable objects with bound parameters w/o using dynamic memory...


c++containerscompile-timestd-variantstatic-polymorphism

Read More
"increment" `std::variant` alternative...


c++c++20std-variant

Read More
Get a compile-time index to a std::variant when visiting it?...


c++c++20template-meta-programmingvariantstd-variant

Read More
Filter repeated types from a variant...


c++std-variant

Read More
What does this variant storage use the buffer array for?...


c++templatesstd-variant

Read More
Substituting `std::holds_alternative` in C++14 with mapbox variant...


c++c++14std-variant

Read More
How to assign to a std::variant with duplicate types?...


c++std-variant

Read More
Why can't std::variant find operator<() when not in same namespace as compared classes...


c++c++17std-variant

Read More
unexpected results in selecting conversion operator overload?...


c++overload-resolutionc++23std-variant

Read More
how to write an overloaded with ignore feature while visit a variant...


c++std-variant

Read More
Is there any practical reason why std::get_if (std::variant) takes a variant argument by pointer ins...


c++c++17pass-by-referencestd-variantpass-by-pointer

Read More
Why is my struct destructed twice with `std::variant` and `std::monostate`?...


c++c++17std-variant

Read More
How to initialize member std::variant variable based on the input of the constructor...


c++std-variant

Read More
vector containing both string and string_view using std::variant...


c++std-variant

Read More
Cleaner way to specify type to get from a std::variant?...


c++c++17std-variant

Read More
Why isn't std::variant allowed to equal compare with one of its alternative types?...


c++c++17std-variant

Read More
Is there an option to create a vector that contains functions with different return types?...


c++vectorstd-variant

Read More
How to copy between variant of type and variant of type pointer...


c++stlstd-variant

Read More
Iterate through a map of std::variant...


c++c++17stdmapvariantstd-variant

Read More
Unable to update std::variant in consteval context...


c++visual-c++c++20std-variantconsteval

Read More
Where to use std::variant over union?...


c++c++17unionvariantstd-variant

Read More
C++ std::variant vs std::any...


c++c++17std-variantstdany

Read More
How to store parametric, strongly typed function for a text-based command console...


c++c++17interpreterstd-variant

Read More
How to delegate constructors for std::variant?...


c++constructorstd-variant

Read More
Is there a simpler way to convert a variant to another variant with const versions of the same types...


c++const-correctnessstd-variant

Read More
Letting compiler write operator==, <, > etc. via spaceship-operator...


c++comparisonstd-variantspaceship-operator

Read More
How to store either std::string or std::string_view in a std::variant?...


c++c++20stdstringstring-viewstd-variant

Read More
BackNext