boostorg / leaf

Lightweight Error Augmentation Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LEAF binaries are too large, due to including iostream/locale

brooksprumo opened this issue · comments

Here's a link to the Slack thread where I first mentioned the issue.

The gist is that error.hpp includes sstream, which then includes iostream and locale. These two headers result in a binary increase of ~210 KB. My total binary size available is ~512 KB, so this makes using LEAF not realistically possible.

It looks like e_unexpected_info::add() uses stringstream. From our discussion, it was mentioned that it should be possible with the configuration macros to not include this, and thus not include sstream.

Please confirm that the latest on the develop brach solves the problem. If there are other items that can be trimmed, let me know.

Building with c364a95 works for me! Thank you!