diff --git a/include/teqp/exceptions.hpp b/include/teqp/exceptions.hpp
index 88a3a3e3dc2f87e240041a4f02ea10105e3d0d08..a17fc2ac7c2addeecb092678e0ababa3d60db1ee 100644
--- a/include/teqp/exceptions.hpp
+++ b/include/teqp/exceptions.hpp
@@ -19,6 +19,7 @@ namespace teqp {
         const int code;
         const std::string msg;
         teqpException(int code, const std::string& msg) : code(code), msg(msg) {};
+    public:
         const char* what() const noexcept override {
             return msg.c_str();
         }