From: Yiding Jia Date: Thu, 29 Nov 2012 22:03:25 +0000 (-0800) Subject: fix std::out_of_range calls to use real constructors X-Git-Tag: v0.22.0~1126 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=35a186fee211e2ce971b1549a2f7137ac359c809;p=folly.git 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 --- diff --git a/folly/small_vector.h b/folly/small_vector.h index 5f7e2733..4a0fa276 100644 --- a/folly/small_vector.h +++ b/folly/small_vector.h @@ -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]; }