diff options
author | Tanzinul Islam <tanzislam@users.noreply.github.com> | 2017-12-30 20:16:27 +0000 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-12-30 15:16:27 -0500 |
commit | b4df31c7f9baaec194d939e7f7a4c9c45e64e166 (patch) | |
tree | 7e1ec39162c751c7a251c78fcd5596bc6dff76d6 /bench1.cpp | |
parent | 16995625819d704ca21988a9142c664361684a5a (diff) | |
download | cryptopp-git-b4df31c7f9baaec194d939e7f7a4c9c45e64e166.tar.gz |
Change ::log() to log() to work with C++Builder (#552)
As reported in #520, C++Builder standard libraries don't have a `log()` function at global namespace. Change the invocations to unqualified name lookup, and apply a using-declaration to `std::log()` when compiling under C++Builder.
Diffstat (limited to 'bench1.cpp')
-rw-r--r-- | bench1.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -70,7 +70,7 @@ void OutputResultBytes(const char *name, double length, double timeTaken) else
std::cout << "<TD>" << std::setprecision(1) << std::setiosflags(std::ios::fixed) << cpb;
}
- g_logTotal += ::log(mbs);
+ g_logTotal += log(mbs);
g_logCount++;
}
@@ -109,7 +109,7 @@ void OutputResultOperations(const char *name, const char *operation, bool pc, un std::cout << "<TD>" << std::setprecision(2) << std::setiosflags(std::ios::fixed) << t;
}
- g_logTotal += ::log(iterations/timeTaken);
+ g_logTotal += log(iterations/timeTaken);
g_logCount++;
}
|