Crtc: fix throw message
[android/external-libkmsxx.git] / libkms++ / crtc.cpp
index d50a78d647ff9e5df577ba6588c20df8ea4aa80a..436cdeeba584fdc512c39ea43f7f266946d02f47 100644 (file)
@@ -92,7 +92,7 @@ Plane* Crtc::get_primary_plane()
                return p;
        }
 
-       throw invalid_argument("No primary plane for crtc " + id());
+       throw invalid_argument(string("No primary plane for crtc ") + to_string(id()));
 }
 
 int Crtc::page_flip(Framebuffer& fb, void *data)