]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/vehicletype.cpp
Add target type to all lexical_casts
[r2c2.git] / source / 3d / vehicletype.cpp
index 620e6d807a8332d2f02493a0105139b83cf953c2..427c29fe91664aa98030487f19d299128531a187 100644 (file)
@@ -100,9 +100,9 @@ GL::Object *VehicleType3D::get_object(const string &name)
                        string kind = name.substr(1, colon-1);
 
                        map<string, string> params;
-                       params["length"] = lexical_cast(type.get_length()*1000);
-                       params["width"] = lexical_cast(type.get_width()*1000);
-                       params["height"] = lexical_cast(type.get_height()*1000);
+                       params["length"] = lexical_cast<string>(type.get_length()*1000);
+                       params["width"] = lexical_cast<string>(type.get_width()*1000);
+                       params["height"] = lexical_cast<string>(type.get_height()*1000);
                        if(colon!=string::npos)
                        {
                                string::size_type start = colon+1;