[jira] [Updated] (XERCESC-2256) Change enum tokType (util/regx/Token.hpp) member names
"Florian Wiesner (Jira)" <[email protected]> Mon, 4 Nov 2024 13:37:00 +0000 (UTC)
| Newsgroups | gmane.text.xml.xerces-c.devel |
|---|---|
| Message-ID | <[email protected]> |
[ https://issues.apache.org/jira/browse/XERCESC-2256?page=3Dcom.atlass=
ian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Florian Wiesner updated XERCESC-2256:
-------------------------------------
Description:=20
the current enumeration uses T_CHAR, T_STRING, etc. as enumeration values. =
Those symbol names are generic enough to cause clashes with other libraries=
- where T_CHAR, T_STRING, etc. are used as macros/definitions.
=C2=A0
Minimum improvement would be to us more distinctive names (or not fully upp=
ercase ones at least). Could be much nicer even when the enum would be conv=
erted to an enum class on top
was:the current enumeration uses T_CHAR, T_STRING, etc. as enumeration va=
lues. Those symbol names are generic enough to cause clashes with other lib=
raries - espe. Therefore, a change to C++11 scoped enums would fix this pot=
ential for clashes on the side of Xerces.
> Change enum tokType (util/regx/Token.hpp) member names
> ------------------------------------------------------
>
> Key: XERCESC-2256
> URL: https://issues.apache.org/jira/browse/XERCESC-2256
> Project: Xerces-C++
> Issue Type: Improvement
> Reporter: Florian Wiesner
> Priority: Major
>
> the current enumeration uses T_CHAR, T_STRING, etc. as enumeration values=
. Those symbol names are generic enough to cause clashes with other librari=
es - where T_CHAR, T_STRING, etc. are used as macros/definitions.
> =C2=A0
> Minimum improvement would be to us more distinctive names (or not fully u=
ppercase ones at least). Could be much nicer even when the enum would be co=
nverted to an enum class on top
--
This message was sent by Atlassian Jira
(v8.20.10#820010)