folly: Range: detail::throwOutOfRange -> std::__throw_out_of_range
authorLucian Grijincu <lucian@fb.com>
Thu, 29 Sep 2016 21:40:13 +0000 (14:40 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Thu, 29 Sep 2016 21:53:26 +0000 (14:53 -0700)
commit10ff2d2156bf72de8f3da0bb642314f9c92812a6
treec348e93db34dece0b6be4b1035145b3a2c4d2e16
parent6039ee419aa6cf043e010297b29348267ab5be0d
folly: Range: detail::throwOutOfRange -> std::__throw_out_of_range

Summary:
No need to define our own.

Generated code is similar: https://godbolt.org/g/5xWrNx (one extra move instruction).

```
.L20:
        subq    $8, %rsp
        call    S::outOfRange() [clone .isra.0]
```

```
.LC1:
        .string "out of range"
.L26:
        subq    $8, %rsp
        movl    $.LC1, %edi
        call    std::__throw_out_of_range(char const*)
```

Reviewed By: Orvid

Differential Revision: D3945578

fbshipit-source-id: c65e9dea55e8f01f51766b2695af68d2bc92c266
folly/Range.h