Skip to content

Distribution.h 中缺少 algoritm 头文件,导致 GCC14 编译失败 #16

@KarlBohm

Description

@KarlBohm

根据手册的步骤,在 Fedora 41 和 openSUSE Tumbleweed 上使用 GCC 14.2.1 编译本项目时,遇到以下错误:

/***/Moer-lite/./src/CoreLayer/Math/Distribution.h:39:23: error: ‘find’ is not a member of ‘std’; did you mean ‘bind’?
   39 |     auto entry = std::find(data.cbegin(), data.cend(), sampled);
      |                       ^~~~
      |                       bind

Distribution.h 中手动添加 #include <algorithm> 即可解决。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions