Expected constexpr on detail::EnableBitmask<Enum> operator...(Enum X, Enum Y) · Issue #79 · gulrak/filesystem · GitHub
Skip to content

Expected constexpr on detail::EnableBitmask<Enum> operator...(Enum X, Enum Y) #79

Description

@phprus

Describe the bug
C++11 17.5.2.1.3 Bitmask types:
constexpr bitmask operator&(bitmask X, bitmask Y)
constexpr bitmask operator|(bitmask X, bitmask Y)
constexpr bitmask operator^(bitmask X, bitmask Y)
constexpr bitmask operator~(bitmask X)

To Reproduce
Using the perm_options operator... in a constexpr function results in a compilation error.

Expected behavior
Compiling without error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

available on masterFix is done on master branch, issue closed on next releasebugSomething isn't working

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions