Boost C++ Libraries: Ticket #3863: A filesystem::path object cannot be extracted from a stream if the path contain a space https://svn.boost.org/trac10/ticket/3863 <p> e.g. </p> <pre class="wiki">filesystem::path p; cin &gt;&gt; p; </pre><p> If the user enters "asdf asdf" the operator&gt;&gt;() will extract chars until the first space and the path'll be "asdf". </p> <p> Replacing </p> <pre class="wiki">is &gt;&gt; str; </pre><p> in the implementation of operator&gt;&gt;() with </p> <pre class="wiki">std::getline(is, str); </pre><p> fixes the problem. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3863 Trac 1.4.3 dgoncharov@… Tue, 02 Feb 2010 13:12:02 GMT attachment set https://svn.boost.org/trac10/ticket/3863 https://svn.boost.org/trac10/ticket/3863 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">fs_path_extract_operator.patch</span> </li> </ul> <p> patch </p> Ticket Beman Dawes Sun, 13 Jun 2010 17:33:41 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3863#comment:1 https://svn.boost.org/trac10/ticket/3863#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">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/62919" title="Fix #3863, stream I/O with space in named failed to roundtrip">[62919]</a>) Fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3863" title="#3863: Bugs: A filesystem::path object cannot be extracted from a stream if the ... (closed: fixed)">#3863</a>, stream I/O with space in named failed to roundtrip </p> Ticket