== Why is this an issue?

----
char* ptr = “Hello”;         // Pointer and data are not const
const char* ptr = “Hello”; // Pointer is not const but data are const
char* const ptr = “Hello”;  // Pointer is const but data are not const
const char* const ptr = “Hello”;  // Pointer and data are const
void foo(const double& d1)  // d1 parameter cannot be modified inside foo function
{...}
----

It avoid not wished modifications


== Resources


ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)

=== duplicates: S934

=== duplicates: S994

=== duplicates: S995

=== duplicates: S1900

=== duplicates: S3504

=== on 9 Sep 2013, 13:27:51 Freddy Mallet wrote:
Don't even know if this rule can be automated.

endif::env-github,rspecator-view[]
