Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在boost::filesystem::path从编辑字段中设置一个。我注意到构造函数很乐意接受文件名的无效字符。
boost::filesystem::path
如何boost::filesystem检查boost::filesystem::path对象是否代表有效的文件名?
boost::filesystem
看看这里:
http://www.boost.org/doc/libs/release/libs/filesystem/doc/portability_guide.htm
这描述了用于检查文件名是否有效的各种功能。