Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#10279 closed Bugs (invalid)

[type_index] Incorrect specification of `skip_at_begin` and `skip_at_end`

Reported by: Michel Morin Owned by: Antony Polukhin
Milestone: To Be Determined Component: None
Version: Boost Development Trunk Severity: Cosmetic
Keywords: Cc:

Description

In the documentation "Fixing pretty_name() output", skip_at_begin and skip_at_end are incorrectly specified:

  • set skip_at_begin to sizeof("const char *__cdecl boost::detail::ctti<") - 1 and skip_at_end to sizeof(">::n(void)") - 1.
  • set skip_at_begin to sizeof("static const char *boost::detail::ctti<") - 1 and skip_at_end to sizeof("]") - 1`.

These - 1 are not necessary.

Similar fixes are needed to the comments in detail/compile_time_type_info.hpp too.

Change History (3)

comment:1 by Michel Morin, 8 years ago

Resolution: invalid
Status: newclosed

Oops, I misunderstood the size of string literals (i.e. char arrays). The specification is correct and this ticket is invalid.

Sorry for the noise.

comment:2 by Antony Polukhin, 8 years ago

Anyway, thanks for paying attention and looking for errors!

comment:3 by Michel Morin, 8 years ago

Thanks for your comment and interesting library, Antony! I made a small patch that fixes typos and I'll create a ticket for that.

Note: See TracTickets for help on using tickets.