Given this, which is MacOS X code to fill 'application_support': unsigned char application_support[PATH_MAX + 1]; OSStatus const status_code = FSRefMakePath(&fsref, application_support, PATH_MAX);
what's the correct way to create a std::string? std::string(application_support) fails. error: invalid conversion from `unsigned char*' to `const char*' I think that it's safe to cast, but am I correct? std::string(reinterpret_cast<char const *>(application_support)); -- Angus