From 1fa92bfbf1da898dfab295c6eb5ed5c6cea77c8e Mon Sep 17 00:00:00 2001 From: Rafael Sagula Date: Thu, 3 Jan 2013 16:54:31 -0800 Subject: [PATCH] folly/comprehensions - fixing exceptions 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/experimental/Gen.h b/folly/experimental/Gen.h index c02fee28..4583af49 100644 --- a/folly/experimental/Gen.h +++ b/folly/experimental/Gen.h @@ -81,7 +81,7 @@ class GenImpl; template 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"; -- 2.34.1