Use an explicit cast to std::string; fixes compilation with Sun Studio C compiler

This commit is contained in:
Moritz Bunkus 2011-02-05 22:55:18 +01:00
parent 46bfe1bb26
commit a9a4bf9d35

View File

@ -35,6 +35,7 @@
\author Julien Coloos <suiryc @ users.sf.net>
*/
#include <cassert>
#include <string>
#include "ebml/EbmlBinary.h"
#include "ebml/StdIOCallback.h"
@ -93,7 +94,7 @@ filepos_t EbmlBinary::ReadData(IOCallback & input, ScopeMode ReadFully)
Data = (binary *)malloc(GetSize() * sizeof(binary));
if (Data == NULL)
throw CRTError("Error allocating data");
throw CRTError(std::string("Error allocating data"));
SetValueIsSet();
return input.read(Data, GetSize());
}