folly/comprehensions - fixing exceptions
authorRafael Sagula <rsagula@fb.com>
Fri, 4 Jan 2013 00:54:31 +0000 (16:54 -0800)
committerJordan DeLong <jdelong@fb.com>
Sat, 19 Jan 2013 00:37:36 +0000 (16:37 -0800)
Summary:
need to open up the visibility of std::exception, otherwise
try..catch(const std::exception& e) won't work for these cases.

Test Plan: unit tests from D670355

Reviewed By: delong.j@fb.com

FB internal diff: D670633

folly/experimental/Gen.h

index c02fee28989d4025237f55bd3e5d0052483ac889..4583af491b88a2f9472bd6f78bf73093870ffa7c 100644 (file)
@@ -81,7 +81,7 @@ class GenImpl;
 template<class Self>
 class Operator;
 
-class EmptySequence : std::exception {
+class EmptySequence : public std::exception {
 public:
   virtual const char* what() const noexcept {
     return "This operation cannot be called on an empty sequence";