Boost C++ Libraries: Ticket #4751: Breaking change between 1.41 and 1.44in split https://svn.boost.org/trac10/ticket/4751 <p> I noticed a breaking change in the split function when the input string is empty. Consider the following example: </p> <p> #include &lt;string&gt; #include &lt;vector&gt; #include &lt;iostream&gt; #include &lt;boost/algorithm/string/split.hpp&gt; #include &lt;boost/algorithm/string/classification.hpp&gt; </p> <p> int main() { </p> <blockquote> <p> std::vector&lt;std::string&gt; result; std::string empty_string; boost::algorithm::split( result, </p> </blockquote> <p> empty_string,boost::algorithm::is_any_of( "\t" ),boost::algorithm::token_compress_off); </p> <blockquote> <p> std::cout &lt;&lt; "result size: " &lt;&lt; result.size() &lt;&lt; std::endl; return 0; </p> </blockquote> <p> } </p> <p> With boost 1.41 I get: result size: 1 With 1.44 I get: result size: 0 </p> <p> Meaning that splitting an empty string now has a new meaning. All I found to this subject was that 1 seems to be the correct answer (<a class="ext-link" href="http://lists.boost.org/Archives/boost/2005/07/90266.php"><span class="icon">​</span>http://lists.boost.org/Archives/boost/2005/07/90266.php</a>). Furthermore, there has been, according to the release notes, no change to string algo since the 1.41. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4751 Trac 1.4.3 Pavol Droba Tue, 19 Oct 2010 20:58:27 GMT status changed https://svn.boost.org/trac10/ticket/4751#comment:1 https://svn.boost.org/trac10/ticket/4751#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Vladimir Prus Wed, 20 Oct 2010 06:14:37 GMT severity, milestone changed https://svn.boost.org/trac10/ticket/4751#comment:2 https://svn.boost.org/trac10/ticket/4751#comment:2 <ul> <li><strong>severity</strong> <span class="trac-field-old">Regression</span> → <span class="trac-field-new">Showstopper</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost-1.45.0</span> </li> </ul> <p> It's not apparent to me that new behaviour is wrong. Anyway, how about looking at SVN log to determine who changed that, and talk to that person? </p> <p> I'm marking this Showstopper since Eric expressed a wish to have this resolved for 1.45. </p> Ticket Pavol Droba Sat, 23 Oct 2010 11:14:55 GMT <link>https://svn.boost.org/trac10/ticket/4751#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4751#comment:3</guid> <description> <p> Actually, there was one change. A small fix, that should not have such an effect. But it might be possible that the fix uncovered another problem. Anyway I will fix the issue soon. Just give me a coupe of days. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Pavol Droba</dc:creator> <pubDate>Wed, 27 Oct 2010 20:42:56 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4751#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4751#comment:4</guid> <description> <p> I have just commited the fix into the trunk. But I probably cannot merge to the release now. Sorry I was not able to fix it sooner. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Pavol Droba</dc:creator> <pubDate>Thu, 28 Oct 2010 06:00:55 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4751#comment:5 https://svn.boost.org/trac10/ticket/4751#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket