include cmath to fix gcc8 compilation error

This fix resolves the following compilation error on GCC8.1.1:

ERROR: /home/junhao/tools/grpc/BUILD:1350:1: C++ compilation of rule '//:grpcpp_server_load_reporting' failed (Exit 1)
src/cpp/server/load_reporter/util.cc:31:12: error: no member named 'isnormal' in namespace 'std'
  if (std::isnormal(cost_value)) {
      ~~~~~^
1 error generated.
pull/16287/head
Junhao Li 7 years ago committed by GitHub
parent e916e79cb8
commit b9decfb35d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/cpp/server/load_reporter/util.cc

@ -21,6 +21,7 @@
#include <grpcpp/ext/server_load_reporting.h>
#include <grpc/support/log.h>
#include <cmath>
namespace grpc {
namespace load_reporter {

Loading…
Cancel
Save