Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't think that's much of an issue. If you need deferred initialization then stick to a pointer and then once the pointer is initialized shadow it with a reference.

    int* pre_foo = null;
    ... initialize pre_foo ...
    int& foo = *pre_foo;


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

Search: