diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-12-08 08:08:08 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-12-08 08:08:08 -0500 |
commit | 5124ff7b20d03c910aada3bc32064e37e8bb4286 (patch) | |
tree | 9d3429ca693ed7c3f35a9717bee09d5af80cd74d /validate.h | |
parent | 8c4f38b27def7cf91626b77ee859ba0469eddaeb (diff) | |
download | cryptopp-git-5124ff7b20d03c910aada3bc32064e37e8bb4286.tar.gz |
Use OS X 10.1 image for Travis testing
Diffstat (limited to 'validate.h')
-rw-r--r-- | validate.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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;
|