diff options
author | AndrewCEmil <andrew.emil@10gen.com> | 2013-04-09 16:58:21 -0700 |
---|---|---|
committer | AndrewCEmil <andrew.emil@10gen.com> | 2013-05-29 11:47:17 -0700 |
commit | 135f0fb362efd4be85b422cf386cc26c2cd5d2d5 (patch) | |
tree | a60fa72e02c7b128387a6c4227087d9cda2b799d /src/mongo/util/hex.h | |
parent | 088557a3cf2b1ed0b6656e0fd9812ca5501e723b (diff) | |
download | mongo-135f0fb362efd4be85b422cf386cc26c2cd5d2d5.tar.gz |
SERVER-7324: added templated toHexTemp function to hex.h/hex.cpp
-replaced incorrect calls of toHex
-added test of integerToHex to stringutils_test.cpp
-changed building of bsondemo
-included hex.cpp to stringutils library package
Diffstat (limited to 'src/mongo/util/hex.h')
-rw-r--r-- | src/mongo/util/hex.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/util/hex.h b/src/mongo/util/hex.h index a39a83e8c3e..9787784f445 100644 --- a/src/mongo/util/hex.h +++ b/src/mongo/util/hex.h @@ -57,6 +57,8 @@ namespace mongo { return out.str(); } + template <typename T> std::string integerToHex(T val); + inline std::string toHexLower(const void* inRaw, int len) { static const char hexchars[] = "0123456789abcdef"; |