« first day (3861 days earlier)      last day (1072 days later) » 

3:35 AM
Best way to keep a friendship is to have a life-long common goal! -Telkitty™
 
 
9 hours later…
nwp
12:09 PM
std::variant<std::string, int> v = condition ? 42 : "hi"; should totally compile.
 
12:30 PM
@nwp it can't for the same reason it would fail in rust. the result of the ? must be the same type. const char* is not convertible to int and vice versa
 
nwp
It works in TypeScript :P
 
@nwp typescript will yell if you strongly type the target
 
nwp
Why would it? condition ? 42 : "hi" returns a string | number which would also be the type of v.
 
cheater
 
nwp
Can't even do std::variant<std::string, int> v = condition ? std::variant(42) : std::variant("hi"); for multiple reasons.
 
 
2 hours later…
nwp
3:02 PM
> You've earned the "Necromancer" badge (Answer a question more than 60 days later with score of 5 or more)
That was for a question I answered over 6 years ago. I hereby award Stackoverflow 10 "Necromancer" badges right back.
 
3:18 PM
Happens all the time. because it waits for enough votes to accumulate, and that tends to take longer for precisely the same reason the good answers did
@Mikhail badumtss
 
 
4 hours later…
6:56 PM
@nwp all of them good?
So I wonder if its possible to check at runtime if a pointer comes from a page locked location. Probably.
 
 
2 hours later…

« first day (3861 days earlier)      last day (1072 days later) »