0
的系列化最大字符长度我搜索计算器的答案,但不能让一场势均力敌的比赛。我正在序列化驱动器的内容。我正在使用boost :: filesystem :: path进行操作。什么应该是最大(300只是标称)字符长度存储路径信息在Windows操作系统。的文件夹路径
struct raw_event
{
friend std::ifstream& operator >> (std::ifstream& infile, raw_event& raw);
friend std::ofstream& operator << (std::ofstream& outfile, raw_event& raw);
private:
char path_[300];
//
};
什么操作系统正在有针对性的?为什么不使用'std :: string'? – user4581301
@ user4581301:Windows操作系统。我使用的std :: string但是对于系列化喜欢使用POD以避免垃圾 – ark1974
的Windows最大路径为260,除非你使用Unicode API。然后它是32767.不知道什么Boost使用,但总是分配32k似乎像一个吸盘赌我。 – user4581301