RenderKit / ospray

An Open, Scalable, Portable, Ray Tracing Based Rendering Engine for High-Fidelity Visualization
http://ospray.org
Apache License 2.0
982 stars 178 forks source link

Fix GCC11 Compile Error in benchmark_register.h #484

Closed benradel closed 2 years ago

benradel commented 3 years ago

Fix GCC11 compilation error (Issue #485) to missing header "limits" in benchmark_register.h

Compiling ospray (Version 2.5, 2.6 and master) with gcc 11.1.0 leads to compilation error:

ospray/apps/common/external/benchmark/src/benchmark_register.h:22:30: error: 'numeric_limits' is not a member of 'std' 22 | static const T kmax = std::numeric_limits<T>::max();

This fix adds the required header to benchmark_register.h

johguenther commented 2 years ago

We now fetch a newer version of Google Benchmark via the superbuild, which includes the <limits>.