Commit 35a186fe authored by Yiding Jia's avatar Yiding Jia Committed by Jordan DeLong

fix std::out_of_range calls to use real constructors

Summary:
curiously, std::out_of_range doesn't have a zero-argument constructor according
to the spec. This was causing issues in my clang setup...

Test Plan: compiles.

Reviewed By: delong.j@fb.com

FB internal diff: D643363
parent 87e1985f
......@@ -846,14 +846,14 @@ public:
reference at(size_type i) {
if (i >= size()) {
throw std::out_of_range();
throw std::out_of_range("index out of range");
}
return (*this)[i];
}
const_reference at(size_type i) const {
if (i >= size()) {
throw std::out_of_range();
throw std::out_of_range("index out of range");
}
return (*this)[i];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment