|  | warning C4503: decorated name length exceeded, name was trun |  | |
| | | Ruki |  |
| Posted: Wed Sep 03, 2008 8:58 pm Post subject: warning C4503: decorated name length exceeded, name was trun |  |
{ This might be an environment-specific question, but let's concentrate on what the language says about this issue. -mod }
My class name length is too long to be truncated, but my program can run successfully. What's the consequence if I disable the warning and ignore it.
e.g. class_1<class2<class3, int, char* >, class2<class3, int, char* > , class2<class3, int, char* >, class2<class3, int, char* >, .... ...
Larger than 10000 characters.
-- [ See LINK for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ] |
| |
| | | Jiang |  |
| Posted: Thu Sep 04, 2008 9:29 am Post subject: Re: warning C4503: decorated name length exceeded, name was |  |
| |  | |
On Sep 4, 5:58 am, Ruki <war...@gmail.com> wrote:
| Quote: | { This might be an environment-specific question, but let's concentrate on what the language says about this issue. -mod }
My class name length is too long to be truncated, but my program can run successfully. What's the consequence if I disable the warning and ignore it.
e.g. class_1<class2<class3, int, char* >, class2<class3, int, char* > , class2<class3, int, char* >, class2<class3, int, char* >, ... ...
... ...
Larger than 10000 characters.
|
This is a QoI issue.
In Annex B, we have following explanation and guidance for length of identifier:
[quote Annex B]
Because computers are finite, C + + implementations are inevitably limited in the size of the programs they can successfully process. Every implementation shall document those limitations where known.
[...]
— Number of characters in an internal identifier or macro name [1 024]. — Number of characters in an external identifier [1 024].
[...]
[end quote]
HTH
Jiang
-- [ See LINK for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ] |
| |
|
|