Opened 11 years ago

Last modified 10 years ago

#6451 new Patches

Patch to allow user to specify other current filename macro on ASSERT

Reported by: Antony Polukhin Owned by: Beman Dawes
Milestone: To Be Determined Component: utility
Version: Boost 1.48.0 Severity: Optimization
Keywords: Cc: antoshkka@…

Description

When BOOST_ENABLE_ASSERT_HANDLER is defined, compiler generates a string with function name. If a function is templated, compiler will generate a string for each function template. That leads to a huge binary files.

Attached patch, that allows to disable construction of such strings or to use different macro for current function name (for example macro that prints ONLY function name).

More info

Attachments (3)

assert.hpp (4.9 KB ) - added by Antony Polukhin 11 years ago.
assert.html.patch (3.4 KB ) - added by Antony Polukhin 11 years ago.
assert.hpp.patch (2.2 KB ) - added by Antony Polukhin 11 years ago.

Download all attachments as: .zip

Change History (6)

by Antony Polukhin, 11 years ago

Attachment: assert.hpp added

by Antony Polukhin, 11 years ago

Attachment: assert.html.patch added

by Antony Polukhin, 11 years ago

Attachment: assert.hpp.patch added

comment:1 by Antony Polukhin, 11 years ago

assert.hpp - patched version
assert.hpp.patch - patch for trunk version
assert.html.patch - patch for documentation

comment:2 by viboes, 10 years ago

Summary: Patch to allow user to specify other current filename macroPatch to allow user to specify other current filename macro on ASSERT

comment:3 by Antony Polukhin, 10 years ago

Owner: changed from No-Maintainer to Beman Dawes
Note: See TracTickets for help on using tickets.