Skip to content

Fix #534: C++: avoid std::to_string for ansi compatibility#541

Merged
andreasabel merged 1 commit into
BNFC:masterfrom
Commelina:fix-534
Mar 12, 2026
Merged

Fix #534: C++: avoid std::to_string for ansi compatibility#541
andreasabel merged 1 commit into
BNFC:masterfrom
Commelina:fix-534

Conversation

@Commelina
Copy link
Copy Markdown
Member

Fixes #534 . Related end-to-end tests are re-enabled.

Although this is not the best solution: it will be better to generate Makefiles with different compiler flags according to the passed command line option (--ansi or not). Currently, the --ansi option of the C++ backend is not used at all.

Also consider #410: it does similar work, but not updated for years (also, maybe there should be a new command line option for backwards compatibility).

@Commelina Commelina marked this pull request as ready for review March 5, 2026 15:21
@Commelina Commelina requested a review from andreasabel March 5, 2026 15:22
Copy link
Copy Markdown
Member

@andreasabel andreasabel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@andreasabel andreasabel added this to the 2.9.6.3 milestone Mar 12, 2026
@andreasabel andreasabel merged commit c2a4003 into BNFC:master Mar 12, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

C++ STL backend: compilation error because of std::to_string

2 participants