On Jan 17, 9:41 am, Marcel M?ller <news.5.ma...@spamgourmet.com>
wrote:
But, in a reasonable C++ application the type char* (without
const) should not be used at all. Please use std::string
instead.
(Exception: if it really points to nothing but a single
character char* might be reasonable in C++ too.)
Although I use unsigned char, other people use char for raw
memory, and in those cases, char* is quite reasonable.
(Obviously, such things don't occur at the application level,
where the only pointers should usually be pointers to entity
types. But if you're implementing low level memory management,
or such, you might use it.)
That's it. In Wrapper libraries almost everything is allowed. I have
done really dirty this in this cases. E.g. binder functions that can
operate with ordinary C function pointers.
something like that (at least not successful).