static XMLCh* transcode (const char* const toTranscode);
ok wtf?
man i have forgotten const's and constantness
from the c++-faq section 18.5:
[18.5] What's the difference between "const Fred* p", "Fred* const p" and "const Fred* const p"?
You have to read pointer declarations right-to-left.
* const Fred* p means "p points to a Fred that is const" — that is, the Fred object can't be changed via p.
* Fred* const p means "p is a const pointer to a Fred" — that is, you can change the Fred object via p, but you can't change the pointer p itself.
* const Fred* const p means "p is a const pointer to a const Fred" — that is, you can't change the pointer p itself, nor can you change the Fred object via p.
or in my case const char* const p means "p is a const pointer to a const char" i cant change
the pointer location or what is pointed to?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment