I am setting a boost::filesystem::path
from an edit field. I notice that the constructor is happy to accept invalid characters for the filename.
How can I use boost::filesystem
to check if the boost::filesystem::path
object represents a valid filename?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…