You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pegasus.apache.org by "padmejin (via GitHub)" <gi...@apache.org> on 2023/03/15 05:42:33 UTC
[GitHub] [incubator-pegasus] padmejin opened a new issue, #1394: ambiguous std::abs when build cpp on ubuntu1604
padmejin opened a new issue, #1394:
URL: https://github.com/apache/incubator-pegasus/issues/1394
## Bug Report
Please answer these questions before submitting your issue. Thanks!
1. What did you do?
If possible, provide a recipe for reproducing the error.
Run `Build Cpp` on ubuntu1604(docker).
2. What did you expect to see?
Build succeed.
4. What did you see instead?
Build failed with the following error.
```
In file included from /root/incubator-pegasus/src/utils/output_utils.cpp:18:0:
/root/incubator-pegasus/src/utils/output_utils.h: In member function 'std::__cxx11::string dsn::utils::table_printer::to_string(T) [with T = double; std::__cxx11::string = std::__cxx11::basic_string<char>]':
/root/incubator-pegasus/src/utils/output_utils.h:180:22: error: call of overloaded 'abs(double&)' is ambiguous
if (std::abs(data) < 1e-6) {
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /root/incubator-pegasus/thirdparty/output/include/rapidjson/rapidjson.h:39,
from /root/incubator-pegasus/thirdparty/output/include/rapidjson/stream.h:15,
from /root/incubator-pegasus/thirdparty/output/include/rapidjson/ostreamwrapper.h:18,
from /root/incubator-pegasus/src/utils/output_utils.h:20,
from /root/incubator-pegasus/src/utils/output_utils.cpp:18:
```
6. What version of Pegasus are you using?
master
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@pegasus.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pegasus.apache.org
For additional commands, e-mail: dev-help@pegasus.apache.org
[GitHub] [incubator-pegasus] acelyc111 closed issue #1394: ambiguous std::abs when build cpp on ubuntu1604
Posted by "acelyc111 (via GitHub)" <gi...@apache.org>.
acelyc111 closed issue #1394: ambiguous std::abs when build cpp on ubuntu1604
URL: https://github.com/apache/incubator-pegasus/issues/1394
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@pegasus.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pegasus.apache.org
For additional commands, e-mail: dev-help@pegasus.apache.org