Boost C++ Libraries: Ticket #2106: oversight in "boost::filesystem::path::operator /" https://svn.boost.org/trac10/ticket/2106 <p> Using "boost::filesystem::path::operator /" with "const char*" or "const string&amp;" as parameter is dangerous because the temporary object of type "path" is create but without control of the name's checking parameter. For example: you can write this code "string filePath = (fs::path(pathName, fs::no_check) / fileName).string();" and expect both "pathName" and "fileName" not to be checked against rules. In fact only "pathName" will not be checked but "fileName" will be checked with default checker. Thus you will receive, unexpected and unhandled, "boost::filesystem::filesystem_error" exception. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2106 Trac 1.4.3 Beman Dawes Thu, 02 Oct 2008 16:05:04 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2106#comment:1 https://svn.boost.org/trac10/ticket/2106#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> The name check on construction has been eliminated. Users complained it was excessively nannyish. Thus there is no longer any issue so I am closing the ticket. </p> <p> --Beman </p> Ticket