give all folly exception types default visibility
[folly.git] / folly / Format.h
index 5980639bd7bbfff0bd4334ce0c3c74286b581b75..2c5f2fc3c32342f931f82339bb173c15c21621b1 100644 (file)
@@ -22,6 +22,7 @@
 #include <tuple>
 #include <type_traits>
 
+#include <folly/CPortability.h>
 #include <folly/Conv.h>
 #include <folly/FormatArg.h>
 #include <folly/Range.h>
@@ -318,7 +319,7 @@ inline std::string svformat(StringPiece fmt, Container&& container) {
  * makes the exception type small and noexcept-copyable like std::out_of_range,
  * and therefore able to fit in-situ in exception_wrapper.
  */
-class FormatKeyNotFoundException : public std::out_of_range {
+class FOLLY_EXPORT FormatKeyNotFoundException : public std::out_of_range {
  public:
   explicit FormatKeyNotFoundException(StringPiece key);