[Boost-bugs] [Boost C++ Libraries] #10699: Add a build flag to increase the size of REPORT_ERROR_BUFFER_SIZE

Subject: [Boost-bugs] [Boost C++ Libraries] #10699: Add a build flag to increase the size of REPORT_ERROR_BUFFER_SIZE
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-10-26 11:20:02


#10699: Add a build flag to increase the size of REPORT_ERROR_BUFFER_SIZE
-------------------------------------+----------------------
 Reporter: albert.gil@… | Owner: rogeeff
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: test
  Version: Boost Development Trunk | Severity: Cosmetic
 Keywords: |
-------------------------------------+----------------------
 Hi,

 Before requesting anything, please let me say that I've been using the
 Boost.Test library for more than 5 years and it is just great, thanks a
 lot!

 And the small question or request:
 Do you think that is a good idea to add a building flag or macro to tune
 the {{{REPORT_ERROR_BUFFER_SIZE}}}?

 The idea is just to add some lines like these in the file
 {{{test/impl/execution_monitor.ipp}}}:

 {{{
 #ifdef BOOST_TEST_ERROR_SIZE_VALUE
     #define REPORT_ERROR_BUFFER_SIZE BOOST_TEST_ERROR_SIZE_VALUE
 #else
     #define REPORT_ERROR_BUFFER_SIZE 512
 #endif
 }}}
 And remove/replace the {{{static const int REPORT_ERROR_BUFFER_SIZE}}} of
 function {{{report_error}}}, of course.

 Does it has any sense to you?


 Thanks!

 Albert

 PS: I assume that it's not possible to use "string" to hold any length of
 message, right?

 PS: We need longer messages because in debug mode our exceptions print a
 backtrace, and 512 chars is just too few...

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10699>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC