Hacker News new | past | comments | ask | show | jobs | submit login

Use a variant type like llvm::Expected.



yup, that's what i thought. i generally tend to use a construct simiar to 'error_or' though. that wrapped within a macro (^^) makes the whole invokation quite bearable




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: