Boost C++ Libraries: Ticket #8708: surprising element segmentation https://svn.boost.org/trac10/ticket/8708 <p> I was shocked today to find that this fails: </p> <div class="wiki-code"><div class="code"><pre><span class="n">assert</span><span class="p">(</span> <span class="n">boost</span><span class="o">::</span><span class="n">starts_with</span><span class="p">(</span> <span class="n">boost</span><span class="o">::</span><span class="n">filesystem</span><span class="o">::</span><span class="n">path</span><span class="p">(</span><span class="s">&quot;/website/public_html/&quot;</span><span class="p">),</span> <span class="n">boost</span><span class="o">::</span><span class="n">filesystem</span><span class="o">::</span><span class="n">path</span><span class="p">(</span><span class="s">&quot;/website/&quot;</span><span class="p">)));</span> </pre></div></div><p> The reason is that the 2nd path has 3 elements, <code>"/"</code>, <code>"website"</code>, and <code>"."</code>. I found that last one especially surprising. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8708 Trac 1.4.3