Skip to content

Missing include for std::hardware_constructive_interference_size #8

@shtanko-sv

Description

@shtanko-sv

Hi, I noticed a tiny issue.

std::hardware_constructive_interference_size is declared in <new> but include for this header is not presented in parameters.h. It causes issue with building using clang libc++:

include/ppqsort/parameters.h:49:16: error: no member named 'hardware_constructive_interference_size' in namespace 'std'
   49 |     using std::hardware_constructive_interference_size;
      |           ~~~~~^
include/ppqsort/parameters.h:84:36: error: use of undeclared identifier 'hardware_constructive_interference_size'
   84 |     constexpr int cacheline_size = hardware_constructive_interference_size;
      |                                    ^
2 errors generated.

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