make it compile :D

This commit is contained in:
Jeff Becker 2018-02-25 08:49:39 -05:00
parent ce9c9411b1
commit ce30f89c60
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -107,7 +107,7 @@ namespace client
std::placeholders::_1, std::placeholders::_2)); std::placeholders::_1, std::placeholders::_2));
} }
static bool SAMVersionAccceptable(const std::string & ver) static bool SAMVersionAcceptable(const std::string & ver)
{ {
return ver == "3.0" || ver == "3.1"; return ver == "3.0" || ver == "3.1";
} }
@ -117,7 +117,7 @@ namespace client
return ver.size() && ver[0] < '3'; return ver.size() && ver[0] < '3';
} }
static bool SAMVersionTooHigh(const std:::string & ver) static bool SAMVersionTooHigh(const std::string & ver)
{ {
return ver.size() && ver > "3.1"; return ver.size() && ver > "3.1";
} }
@ -172,7 +172,7 @@ namespace client
{ {
version = minver; version = minver;
} }
else if (SAMVersionTooLow(minver) && SAMVersionIsTooHigh(maxver)) else if (SAMVersionTooLow(minver) && SAMVersionTooHigh(maxver))
{ {
version = "3.0"; version = "3.0";
} }