|
...
|
...
|
@@ -1,7 +1,7 @@
|
|
1
|
1
|
/*
|
|
2
|
2
|
* Common conversion functions
|
|
3
|
3
|
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com]
|
|
4
|
|
- * Last modification on 2013-03-25
|
|
|
4
|
+ * Last modification on 2013-03-28
|
|
5
|
5
|
*/
|
|
6
|
6
|
|
|
7
|
7
|
#ifndef _CONVERT_H_
|
|
...
|
...
|
@@ -66,7 +66,7 @@ template<typename T, typename S> inline T convertTo(const std::basic_string<S> &
|
|
66
|
66
|
class ConvertFuncs
|
|
67
|
67
|
{
|
|
68
|
68
|
private:
|
|
69
|
|
- static inline bool IsDigitsOnly(const std::string input, const std::locale &loc = std::locale::classic())
|
|
|
69
|
+ static inline bool IsDigitsOnly(const std::string &input, const std::locale &loc = std::locale::classic())
|
|
70
|
70
|
{
|
|
71
|
71
|
auto inputChars = std::vector<char>(input.begin(), input.end());
|
|
72
|
72
|
size_t length = inputChars.size();
|