Skip to content

on Windows, disable std::byte with #define _HAS_STD_BYTE 0 #8270

@2bbb

Description

@2bbb

Since C++17 introduced std::byte, errors have been occurring frequently on Windows. The best solution would be to avoid using using namespace std; indiscriminately, but I also understand that various addons can cause issues.

So, while it might lead to some confusion, how about defining #define _HAS_STD_BYTE 0 in the VC++ environment to temporarily disable std::byte?
At the very least, beginners and learners around me seem to have developed a fear of recent versions of oF due to these errors, so I think this could serve as a reasonable temporary workaround. I don’t see much code that actually uses std::byte anyway…

That said, I haven’t thoroughly checked whether there are libraries that depend on std::byte, but for now, this is just a suggestion.

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