SpiceQA
Questions
Tags
Users
Badges
std-variant
44 Questions
Newest
Active
Unanswered
Frequent
More
Score
View
Card
Compact
Why does std::variant behave differently on GCC 8.5 and GCC 12.1 in respect to a `const char *` literal?
user_1047788
0
•
asked Aug 9, 2022
3
2
89
std-variant
c++17
gcc
c++
struct without constructors containing std::variant containing array cannot be returned by value?
user_5667718
0
•
asked Jul 27, 2022
2
0
58
std-variant
c++
Cleaner way to specify type to get from a std::variant?
MSalters_15416
0
•
asked Jul 12, 2022
3
3
186
std-variant
c++17
c++
How to efficiently initialize a std::variant data member in a class template
user_1629821
0
•
asked Jul 12, 2022
2
2
221
std-variant
move-semantics
templates
c++
How to improve compiler error messages when using C++ std::visit?
user_6637939
0
•
asked Jun 5, 2022
10
4
422
std-variant
compiler-errors
c++
Invoke a method for each alternative in a list of std::variant without macros
user_784672
0
•
asked Mar 4, 2022
1
1
112
std-invoke
std-variant
c++17
template-meta-programming
c++
Unable to visit a variant if one of its alternatives does not have a specific field
user_1333734
0
•
asked Jan 31, 2022
2
2
54
std-variant
c++17
c++
Is it safe to call std::visit on classes with virtual functions?
user_10850646
0
•
asked Jan 12, 2022
2
1
83
std-variant
std
c++
std::variant of std::string inside any class in constexpr context fails to compile
user_4184203
0
•
asked Dec 31, 2021
6
1
133
constexpr
std-variant
c++20
gcc
c++
C++ variant containing a map of itself
user_17789309
0
•
asked Dec 29, 2021
2
1
244
self-reference
std-variant
c++17
c++
1
(current)
2
3
4
5
Next
Next
Hot Questions