Boost C++ Libraries: Ticket #12518: boost::filesystem::unique_path throws std::exception and not filesystem_error https://svn.boost.org/trac10/ticket/12518 <p> try this </p> <p> path tmp = boost::filesystem::temp_directory_path(); tmp /= "<a class="missing wiki">MyApp</a>-%%%%-%%%%-%%%%-%%%%"; </p> <p> path folderName; try { </p> <blockquote> <p> folderName= boost::filesystem::unique_path(tmp ); </p> </blockquote> <p> } catch(boost::filesystem::filesystem_error&amp; roE) { </p> <blockquote> <p> std::cout &lt;&lt; "Never come here on windows temporary user account" &lt;&lt; std::endl; </p> </blockquote> <p> } catch (std::exception&amp; roE) { </p> <blockquote> <p> std::cout &lt;&lt; "Here i come on windows temporary user account" &lt;&lt; std::endl; </p> </blockquote> <p> } </p> <p> in fact a boost exception should be thrown. Tested on Windows 8.1 x64 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12518 Trac 1.4.3 anonymous Tue, 11 Oct 2016 12:10:51 GMT <link>https://svn.boost.org/trac10/ticket/12518#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12518#comment:1</guid> <description> <p> compiled with VS Studo 2013 SP5 (also boost compiled with same on my own) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Thu, 20 Oct 2016 17:20:47 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/12518#comment:2 https://svn.boost.org/trac10/ticket/12518#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">Beman Dawes</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">filesystem</span> </li> </ul> Ticket jschaub@… Tue, 06 Dec 2016 11:41:52 GMT <link>https://svn.boost.org/trac10/ticket/12518#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12518#comment:3</guid> <description> <p> Same happens for me with boost version 1.59 , Windows 10 x86 (32bit). The error message by Windows is: </p> <p> "The requested operation cannot be completed. The computer must be trusted for delegation and the current user account must be configured to allow delegation." </p> <p> Original German error message: </p> <p> "std::exception: 'boost::filesystem::unique_path: Der angeforderte Vorgang kann nicht abgeschlossen werden. Dem Computer muss für Delegierungszwecke vertraut werden und das aktuelle Benutzerkonto muss für die Zulassung von Delegationszwecken konfiguriert werden" </p> </description> <category>Ticket</category> </item> <item> <author>jschaub@…</author> <pubDate>Tue, 06 Dec 2016 11:41:56 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12518#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12518#comment:3</guid> <description> <p> Same happens for me with boost version 1.59 , Windows 10 x86 (32bit). The error message by Windows is: </p> <p> "The requested operation cannot be completed. The computer must be trusted for delegation and the current user account must be configured to allow delegation." </p> <p> Original German error message: </p> <p> "std::exception: 'boost::filesystem::unique_path: Der angeforderte Vorgang kann nicht abgeschlossen werden. Dem Computer muss für Delegierungszwecke vertraut werden und das aktuelle Benutzerkonto muss für die Zulassung von Delegationszwecken konfiguriert werden" </p> </description> <category>Ticket</category> </item> </channel> </rss>