Skip to content

Warning: "Possible misuse of comma operator" #12

@thomthom

Description

@thomthom

I'm seeing a warning being emitted by this library when I'm using Xcode 10.3:

return i >= size() ? boost::throw_exception(std::out_of_range ("array<>: index out of range")), true : true;

Possible misuse of comma operator here

image

Initially I thought of making a PR to address it, but I don't really understand the expression at that line. Why is boost::throw_exception followed by , true ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions