Angus Leeming <[EMAIL PROTECTED]> writes: >> | I think that it's safe to cast, but am I correct? >> | std::string(reinterpret_cast<char const *>(application_support)); >> >> We should try to avoid it. > | Googling (strlen FSRefMakePath), I see lots of this sort of code: > | char array[PATH_MAX + 1]; | FSRefMakePath(&fsref, reinterpret_cast<UInt8*>(array), PATH_MAX);
So FSRefMakePath really should have another type. Anyway, I think that putting the reinterpret_cast in the call to FSRefMakePath is better that what you had originally. -- Lgb