10000 generator.h can't be included from c++20 and above · Issue #143 · Cubitect/cubiomes · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
generator.h can't be included from c++20 and above #143
Open
@TheBjoel2

Description

@TheBjoel2

Including this header and building (g++ -std=c++20 file.cpp) the code results in an error:

In file included from cubiomes/noise.h:5,
                 from cubiomes/layers.h:4,
                 from cubiomes/generator.h:4,
                 from test.cpp:1:
/usr/include/c++/15.1.1/math.h:183:12: error: ‘constexpr double std::lerp(double, double, double)’ conflicts with a previous declaration
  183 | using std::lerp;
      |            ^~~~
In file included from cubiomes/noise.h:4:
cubiomes/rng.h:347:22: note: previous declaration ‘double lerp(double, double, double)’
  347 | static inline double lerp(double part, double from, double to)
      |                      ^~~~

std::lerp reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0