fix: ubiquitous constant defined in header
..resulting in that global constant being allocated a gazillion times
This commit is contained in:
parent
3d859c8b53
commit
011afa4be8
2 changed files with 4 additions and 1 deletions
|
|
@ -50,6 +50,9 @@ using boost::hash_combine;
|
|||
|
||||
namespace lib {
|
||||
|
||||
const size_t STRING_MAX_RELEVANT = 1000;
|
||||
|
||||
|
||||
/** equality on Symbol values is defined
|
||||
* based on the content, not the address. */
|
||||
bool
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ namespace lib {
|
|||
/** safety guard: maximum number of chars to process.
|
||||
* For comparisons, hash calculations etc., when dealing
|
||||
* with raw char ptrs (typically literal values) */
|
||||
const size_t STRING_MAX_RELEVANT = 1000;
|
||||
extern const size_t STRING_MAX_RELEVANT;
|
||||
|
||||
|
||||
/* ===== to be picked up by ADL ===== */
|
||||
|
|
|
|||
Loading…
Reference in a new issue