Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Warning: "Possible misuse of comma operator" #12

Copy link
Copy link
@thomthom

Description

@thomthom
Issue body actions

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 ?

Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.