You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pegasus.apache.org by la...@apache.org on 2023/03/15 14:41:15 UTC

[incubator-pegasus] branch master updated: chore(CI): include cmath to fix ambiguous std::abs on ubuntu1604 (#1395)

This is an automated email from the ASF dual-hosted git repository.

laiyingchun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git


The following commit(s) were added to refs/heads/master by this push:
     new fd5a4350c chore(CI): include cmath to fix ambiguous std::abs on ubuntu1604 (#1395)
fd5a4350c is described below

commit fd5a4350c410998af5b609072c358606afe7c38f
Author: padmejin <89...@users.noreply.github.com>
AuthorDate: Wed Mar 15 22:41:07 2023 +0800

    chore(CI): include cmath to fix ambiguous std::abs on ubuntu1604 (#1395)
    
    https://github.com/apache/incubator-pegasus/issues/1394
    
    Add missing include header `<cmath>` in `src/utils/output_utils.h` to resolve compile
    error on Ubuntu 16.04
---
 src/utils/output_utils.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/utils/output_utils.h b/src/utils/output_utils.h
index 516dae17c..c66d55f73 100644
--- a/src/utils/output_utils.h
+++ b/src/utils/output_utils.h
@@ -20,6 +20,7 @@
 // IWYU pragma: no_include <bits/std_abs.h>
 #include <rapidjson/ostreamwrapper.h>
 #include <stdlib.h>
+#include <cmath> // IWYU pragma: keep
 #include <iomanip>
 // IWYU pragma: no_include <new>
 #include <sstream> // IWYU pragma: keep


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pegasus.apache.org
For additional commands, e-mail: commits-help@pegasus.apache.org