diff --git a/source/format/BP1Aggregator.cpp b/source/format/BP1Aggregator.cpp
index 01849b7a15169cba6d20e4598cf067a847d27274..442c22f6166ab80cf0b3df5c92e746588cf17d6c 100644
--- a/source/format/BP1Aggregator.cpp
+++ b/source/format/BP1Aggregator.cpp
@@ -10,6 +10,7 @@
 
 /// \cond EXCLUDE_FROM_DOXYGEN
 #include <fstream>
+#include <stdexcept>
 #include <vector>
 /// \endcond