From c312cb2f4b3365098d287a8845f563ce5fac384f Mon Sep 17 00:00:00 2001 From: Jax Young Date: Thu, 25 Jul 2024 15:44:03 +0800 Subject: [PATCH] fix compilation error of ray tracing overview code memcpy() should be included from , and numeric_limits is not available by default when using -std=c++11. --- ray-tracing-overview/whitted.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ray-tracing-overview/whitted.cpp b/ray-tracing-overview/whitted.cpp index b1b95c0..880213b 100644 --- a/ray-tracing-overview/whitted.cpp +++ b/ray-tracing-overview/whitted.cpp @@ -37,6 +37,8 @@ #include #include #include +#include +#include const float kInfinity = std::numeric_limits::max();