Slashdot Mirror


User: olsson

olsson's activity in the archive.

Stories
0
Comments
1
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1

  1. Re:null or not null, that is the question on Null References, the Billion Dollar Mistake · · Score: 1

    Not legal

    ISO C++ standard - section 8.3.2 paragraph 4

    "A reference shall be initialized to refer to a valid object or function.
    [Note: in particular, a null reference cannot exist in a well-defined
    program, because the only way to create such a reference would be to bind it
    to the ``object'' obtained by dereferencing a null pointer, which causes
    undefined behavior."