I couldn’t find a ‘path length’ method in the boost::filesystem::path, is there one?
If there is no such method (why?) – should I use .native().length() or .string().length() ?
I take it .string().length() should be faster, right?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
.native()directly returns the internal representation of the path, whilestring()might perform some conversions. All in all, it won’t make much difference though whether you usenative().length()orstring().length().