summaryrefslogtreecommitdiff
path: root/validate.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-12-08 08:08:08 -0500
committerJeffrey Walton <noloader@gmail.com>2018-12-08 08:08:08 -0500
commit5124ff7b20d03c910aada3bc32064e37e8bb4286 (patch)
tree9d3429ca693ed7c3f35a9717bee09d5af80cd74d /validate.h
parent8c4f38b27def7cf91626b77ee859ba0469eddaeb (diff)
downloadcryptopp-git-5124ff7b20d03c910aada3bc32064e37e8bb4286.tar.gz
Use OS X 10.1 image for Travis testing
Diffstat (limited to 'validate.h')
-rw-r--r--validate.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/validate.h b/validate.h
index fbdd7796..f41b0a00 100644
--- a/validate.h
+++ b/validate.h
@@ -223,7 +223,7 @@ inline T StringToValue(const std::string& str)
iss >> std::noskipws >> value;
// Use fail(), not bad()
- if (iss.fail() || !iss.eof())
+ if (iss.fail())
throw InvalidArgument(str + "' is not a value");
if (NON_NEGATIVE && value < 0)
@@ -254,6 +254,8 @@ inline std::string AddSeparator(std::string str)
return str;
}
+// Ideally we would cache the directory and just add the prefix
+// to subsequent calls, but ... Static Initialization Order Fiasco
inline std::string DataDir(const std::string& filename)
{
std::string name;