HackerTrans
TopNewTrendsCommentsPastAskShowJobs

jjdisn

no profile record

comments

jjdisn
·2 lata temu·discuss
Honest question: what's wrong with std::variant? I'm quite fond of using it.

Sure it has trade offs like being empty by exception, but that's necessary if you don't want it to allocate.

Also, pattern matching would be nice instead of std::get with visitor, but that's more of a language issue than an std::variant issue