Skip to content

Commit

Permalink
terminology correction?
Browse files Browse the repository at this point in the history
readable -> read-only
  • Loading branch information
ab396356 committed Nov 29, 2016
1 parent c638d3a commit 694d356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion const.fqa
Expand Up @@ -200,7 +200,7 @@ There are numerous reasons making |const_cast| safer in practice than in theory.
Compiler writers are unlikely to add special cases to their compiler to support |const| objects of C++ classes because it's hard work
that is unlikely to pay off. For example, allocating a global |const| C-style structure with an aggregate initializer in read-only
memory is easy. Doing the same for a C++ class with a constructor is hard because the constructor must be able to
write to the object upon initialization. So you'd have to use writable memory you later make readable, which is not
write to the object upon initialization. So you'd have to use writable memory you later make read-only, which is not
typically supported by object file formats and operating systems. Or you could translate C++ code to a C-style aggregate
initializer, spending lots of effort to only handle the cases when the compiler can [9.1 inline] the code of the constructors.

Expand Down

0 comments on commit 694d356

Please sign in to comment.