Skip to content

fix: const_cast for snprintf compatibility with GCC 15 / C++20 - #372

Open
brianlamere wants to merge 1 commit into
al2na:masterfrom
brianlamere:fix-gcc15-const-cast
Open

brianlamere wants to merge 1 commit into
al2na:masterfrom
brianlamere:fix-gcc15-const-cast

Conversation

@brianlamere

Copy link
Copy Markdown

cigar_buffer.data() returns const char* in C++20 strict mode but snprintf expects char*. Added const_cast<char*> at lines 925 and 934. Backwards compatible with older C++ standards.

Fixes: #371

cigar_buffer.data() returns const char* in C++20 strict mode but
snprintf expects char*. Added const_cast<char*> at lines 925 and 934.
Backwards compatible with older C++ standards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

methylKit 1.33.3 (bioconductor version 1.38.0) fails to compile with GCC 15 / C++20: const char* to char* conversion in methCall.cpp

1 participant