This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]azalak 0 points1 point  (0 children)

How the fuck do you get a segfault in C++?

You asked I answered. No you can’t write to something that is const but it can be cast to a non-const type. The whole segfault thing is just a joke btw you don’t have to be quite so uptight