Permalink
Browse files

Merge branch 'master' of https://DennisOSRM@github.com/DennisOSRM/Pro…

…ject-OSRM.git
  • Loading branch information...
2 parents fa62f70 + 6918c7f commit 4236f92de28348587f825af51387fecadc759595 DennisOSRM committed Jun 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Algorithms/ObjectToBase64.h
@@ -43,7 +43,7 @@ typedef
template<class ToEncodeT>
static void EncodeObjectToBase64(const ToEncodeT & object, std::string& encoded) {
- assert(0 == encoded.length());
+ encoded.clear();
char * pointerToOriginalObject = (char *)&object;
encoded = std::string(base64_t(pointerToOriginalObject), base64_t(pointerToOriginalObject+sizeof(ToEncodeT)));
//replace "+" with "-" and "/" with "_"

0 comments on commit 4236f92

Please sign in to comment.