Boost C++ Libraries: Ticket #5967: boost::archive::iterators::remove_whitespace do not work with pointers https://svn.boost.org/trac10/ticket/5967 <p> boost::archive::iterators::remove_whitespace seems only able to work with real iterators, not with pointers such as char *. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5967 Trac 1.4.3 Robert Ramey Sun, 02 Oct 2011 20:57:50 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5967#comment:1 https://svn.boost.org/trac10/ticket/5967#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> I'd have to see a small test case. Until that happens, I'm deleting this ticket. </p> <p> Robert Ramey </p> Ticket cdubout@… Sun, 02 Oct 2011 21:09:43 GMT <link>https://svn.boost.org/trac10/ticket/5967#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5967#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/5967#comment:1" title="Comment 1">ramey</a>: </p> <blockquote class="citation"> <p> I'd have to see a small test case. Until that happens, I'm deleting this ticket. </p> <p> Robert Ramey </p> </blockquote> <p> I could write a test case but it would really be a waste of time. Let me quote the source code of boost 1.47: </p> <pre class="wiki">template&lt;class Base&gt; class remove_whitespace : public filter_iterator&lt; remove_whitespace_predicate&lt;BOOST_DEDUCED_TYPENAME Base::value_type&gt;, </pre><p> If base is a pointer as opposed to an iterator class, there will be a compilation error since Base is not a class, and do not contain a value_type. There might be an easy workaround, but so far I did not find how to use remove_whitespace directly on C strings. Regards, </p> <p> Charles </p> </description> <category>Ticket</category> </item> <item> <author>cdubout@…</author> <pubDate>Sun, 02 Oct 2011 21:28:37 GMT</pubDate> <title>status changed; resolution deleted https://svn.boost.org/trac10/ticket/5967#comment:3 https://svn.boost.org/trac10/ticket/5967#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">invalid</span> </li> </ul> Ticket Robert Ramey Sat, 08 Oct 2011 04:29:20 GMT <link>https://svn.boost.org/trac10/ticket/5967#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5967#comment:4</guid> <description> <p> lol - OK - I see your argument. But without a test case, how will I know for sure that I fixed it? </p> <p> Would you care to submit a test and patch? </p> <p> I believe that this could be addressed by altering the code to use boost::iterator_traits (see ../libs/iterator/doc/iterator_traits.html). Now that you've pointed this out, it's possible that other members of this group suffer the same deficiency. </p> <p> Any help you might be able to contribute would be appreciated. </p> <p> Robert Ramey </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Sat, 08 Oct 2011 05:05:27 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5967#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5967#comment:5</guid> <description> <p> try altering remove_whitespace.hpp to include: </p> <p> #include &lt;boost/iterator/iterator_traits.hpp&gt; </p> <blockquote> <p> remove_whitespace_predicate&lt; </p> <blockquote> <p> BOOST_DEDUCED_TYPENAME boost::iterator_value&lt;Base&gt;::type <em>BOOST_DEDUCED_TYPENAME Base::value_type </em></p> <blockquote class="citation"> <p> , </p> </blockquote> </blockquote> </blockquote> <p> Let me know how this works </p> <p> Robert Ramey </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Tue, 18 Feb 2014 18:22:08 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5967#comment:6 https://svn.boost.org/trac10/ticket/5967#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Got no response. </p> <p> I think I fixed this last april '13 So I'm closing this ticket. </p> <p> Robert Ramey </p> Ticket