Hi, all. In re-submitting a package to CRAN, I'm getting the following
warnings in the Debian pre-test:
Found the following significant warnings:
sort.cpp:12:28: warning: binary constants are a C++14 feature or GCC extension
sort.cpp:12:43: warning: binary constants are a C++14 feature or GCC extension
I added some C++ code to speed up the package and the warnings refer to
this line of C++:
while ((s[p + length] & 0b11000000) == 0b10000000) {
The line has to do with parsing UTF-8 strings by figuring out how many
bytes are used in each character. Is the 0b... notation not allowed in
CRAN? I could substitute decimal constants, but that will be a bit more
obtuse. The other platforms seems to allow this; only the Debian check
failed.
Dan
.
--------------------------
Dan Zigmond
[email protected]
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel