diff --git a/examples/pluginmanager.cpp b/examples/pluginmanager.cpp index 9e0371a..b7f6b11 100644 --- a/examples/pluginmanager.cpp +++ b/examples/pluginmanager.cpp @@ -98,7 +98,7 @@ class PluginContainer { auto p = PluginRegistry::Instance().Create(plugin, menu); if (p) - plugins.push_back(move(p)); + plugins.push_back(std::move(p)); } void Unload(const string& plugin) { @@ -187,7 +187,7 @@ class Arithmetic : public RegisteredPlugin }, "Print the result of a subtraction" ); - menuHandler = menu->Insert(move(subMenu)); + menuHandler = menu->Insert(std::move(subMenu)); } ~Arithmetic() override { @@ -237,7 +237,7 @@ class Strings : public RegisteredPlugin out << "\n"; }, "Alphabetically sort a list of words" ); - menuHandler = menu->Insert(move(subMenu)); + menuHandler = menu->Insert(std::move(subMenu)); } ~Strings() override { diff --git a/include/cli/detail/fromstring.h b/include/cli/detail/fromstring.h index 0bfbced..606b3e2 100644 --- a/include/cli/detail/fromstring.h +++ b/include/cli/detail/fromstring.h @@ -131,7 +131,7 @@ inline T signed_from_string(std::string s) { s = s.substr(1); const U val = unsigned_digits_from_string(s); - const auto min = std::numeric_limits::min(); // this to avoid overflow warnings + auto min = std::numeric_limits::min(); // this to avoid overflow warnings. Please NOTE: const auto produces warning! if ( val > static_cast( - min ) ) throw bad_conversion(); return (- static_cast(val));