Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This compliant solution also complies with EXP34-C. Do not dereference null pointers in the implementation of f(). With this definition, the output becomes:

...

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

OOP33OOP51-CPP

Low

Probable

Medium

P4

L3

...

Bibliography

[ISO/IEC 14882-2014]12.8, "Copying and Moving Class Objects"
[Dewhurst 02]Gotcha #38, "Slicing"
[Sutter 00]GotW #22: "Object Lifetimes - Part I" 

...