Skip to content

Constrain the boolean operators #12

@dangelog

Description

@dangelog

The convenience operators should be constrained to only take predicates or similar. Otherwise, if they're in scope, then all sorts of nonsense starts compiling:

using namespace KDAlgorithms::Operators;
std::string to_be;

to_be || !to_be; // that is the question

(Granted, one can't really use the return value of these operators, as it would immediately then trigger compilation errors)

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