New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ULib test fails #86
Comments
@aldanor --- ULibtest.cpp 2017-03-24 16:10:17.000000000 +0100
+++ ULibtest.cpp.new 2017-06-01 13:24:39.925727535 +0200
@@ -44,12 +44,21 @@
{
stat.arrayCount++;
+# if defined(U_STDCPP_ENABLE) && defined(HAVE_CXX11)
for (auto const& i : val)
{
stat.elementCount++;
GenStat(stat, i.getValue());
}
+# else
+ for (UValue* i = UValue::toNode(val.ival); i; i = i->next)
+ {
+ stat.elementCount++;
+
+ GenStat(stat, i->getValue());
+ }
+# endif
}
break;
@@ -57,6 +66,7 @@
{
stat.objectCount++;
+# if defined(U_STDCPP_ENABLE) && defined(HAVE_CXX11)
for (auto const& i : val)
{
stat.memberCount++;
@@ -65,6 +75,16 @@
GenStat(stat, i.getValue());
}
+# else
+ for (UValue* i = UValue::toNode(val.ival); i; i = i->next)
+ {
+ stat.memberCount++;
+ stat.stringCount++; // Key
+ stat.stringLength += UValue::getStringSize(i->getKey());
+
+ GenStat(stat, i->getValue());
+ }
+# endif
}
break;
} |
The error persists. It's 2020 and I get the error with an updated Xcode compiler (Clang based on LLVM 9, which Apple versions as 11.0.3)... ...isn't it time to fix the default implementation instead of asking developers to patch the repo themselves? B. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(I've ran
./configure --disable-shared && make
, same as in travis config)This is on OS X:
The text was updated successfully, but these errors were encountered: