diff --git a/cpp/QrCode.cpp b/cpp/QrCode.cpp
index 6a2178d..2b24d65 100644
--- a/cpp/QrCode.cpp
+++ b/cpp/QrCode.cpp
@@ -26,6 +26,7 @@
 #include <cstddef>
 #include <cstdlib>
 #include <sstream>
+#include <utility>
 #include "BitBuffer.hpp"
 #include "QrCode.hpp"