diff --git a/xpas/include/xpas/phylo_tree.h b/xpas/include/xpas/phylo_tree.h
index 664a07f..320caf4 100644
--- a/lib/xpas/xpas/include/xpas/phylo_tree.h
+++ b/lib/xpas/xpas/include/xpas/phylo_tree.h
@@ -6,6 +6,7 @@
 #include <unordered_map>
 #include <algorithm>
 #include <type_traits>
+#include <stdexcept>
 #include "optional.h"
 
 namespace xpas
@@ -408,4 +409,4 @@ namespace xpas
     };
 }
 
-#endif
\ No newline at end of file
+#endif
