From f5e9154492358918f639ed84cc0ad84440e7a41d Mon Sep 17 00:00:00 2001 From: lisyarus Date: Thu, 1 Oct 2020 23:10:04 +0300 Subject: [PATCH] Mention gcc bug in comments for gradient initialization --- examples/cloud.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/cloud.cpp b/examples/cloud.cpp index 3d70dac0..af5994ba 100644 --- a/examples/cloud.cpp +++ b/examples/cloud.cpp @@ -241,6 +241,8 @@ struct cloud_app pcg::fractal> perlin(std::move(grad), std::move(weights)); + // can't use template argument deduction for first argument due to gcc bug + // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89062 geom::gradient g(std::make_pair(0.2f, 0.f), geom::easing_type::cubic, std::pair{0.4f, max_density}); util::array cloud_data({cloud_size[0], cloud_size[1], cloud_size[2]});