Commit 1fa92bfb authored by Rafael Sagula's avatar Rafael Sagula Committed by Jordan DeLong

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
parent 1ebbefe6
......@@ -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";
......
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