This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/71562] New: Changing the fix size of _S_local_capacity in sso_string_base.h
- From: "development at faf-ltd dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 16 Jun 2016 22:26:51 +0000
- Subject: [Bug libstdc++/71562] New: Changing the fix size of _S_local_capacity in sso_string_base.h
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71562
Bug ID: 71562
Summary: Changing the fix size of _S_local_capacity in
sso_string_base.h
Product: gcc
Version: 4.9.3
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: development@faf-ltd.com
Target Milestone: ---
Would it be possible to change the hard coded size <_S_local_capacity> in
<sso_string_base.h> in line #55 from 15 to a PREPROCESSOR_DEFINE which can be
provided to the compiler in the command line?
To catch the situation the PREPROCESSOR_DEFINE is not set, there have to be a
check in the beginning of the include file like this [the name is an example]:
#ifndef LOCAL_CAPACITY_STRING_BASE
#define LOCAL_CAPACITY_STRING_BASE 15
#endif
and then line #55 would be this:
enum { _S_local_capacity = LOCAL_CAPACITY_STRING_BASE };
This would increase the flexibility for the programmer without a hack in the
c++ include file...