Boost C++ Libraries: Ticket #10279: [type_index] Incorrect specification of `skip_at_begin` and `skip_at_end` https://svn.boost.org/trac10/ticket/10279 <p> In the documentation "Fixing pretty_name() output", <code>skip_at_begin</code> and <code>skip_at_end</code> are incorrectly specified: </p> <ul><li>set <code>skip_at_begin</code> to <code>sizeof("const char *__cdecl boost::detail::ctti&lt;") - 1</code> and <code>skip_at_end</code> to <code>sizeof("&gt;::n(void)") - 1</code>. </li><li>set <code>skip_at_begin</code> to <code>sizeof("static const char *boost::detail::ctti&lt;") - 1</code> and <code>skip_at_end</code> to sizeof("]") - 1`. </li></ul><p> These <code>- 1</code> are not necessary. </p> <p> Similar fixes are needed to the comments in <code>detail/compile_time_type_info.hpp</code> too. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10279 Trac 1.4.3 Michel Morin Wed, 30 Jul 2014 13:45:30 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10279#comment:1 https://svn.boost.org/trac10/ticket/10279#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> Oops, I misunderstood the size of string literals (i.e. char arrays). The specification is correct and this ticket is invalid. </p> <p> Sorry for the noise. </p> Ticket Antony Polukhin Wed, 30 Jul 2014 14:29:36 GMT <link>https://svn.boost.org/trac10/ticket/10279#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10279#comment:2</guid> <description> <p> Anyway, thanks for paying attention and looking for errors! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Michel Morin</dc:creator> <pubDate>Sat, 02 Aug 2014 09:43:08 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10279#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10279#comment:3</guid> <description> <p> Thanks for your comment and interesting library, Antony! I made a small patch that fixes typos and I'll create a ticket for that. </p> </description> <category>Ticket</category> </item> </channel> </rss>