]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/control.cpp
Add the target type to lexical_cast invocations
[libs/gui.git] / source / input / control.cpp
index eee0f1523e98256604ca4e0213669134a555c4d1..f3f1919d45815535561932e99c7d23b29b59b16d 100644 (file)
@@ -2,6 +2,8 @@
 #include "control.h"
 #include "device.h"
 
+using namespace std;
+
 namespace Msp {
 namespace Input {
 
@@ -28,7 +30,7 @@ std::string ControlSource::str() const
        else if(type==NONE)
                return "None";
 
-       return lexical_cast(index);
+       return lexical_cast<string>(index);
 }