Fix build errors in gcc 4.8

This commit is contained in:
Davis King 2021-01-06 07:48:16 -05:00
parent 39eec294b0
commit 9e5c556740
2 changed files with 3 additions and 4 deletions

View File

@ -89,11 +89,10 @@ namespace
void test_against_saved_good_fftrs()
{
std::stringstream base64_in, decompressed_in, decompressed_out;
std::stringstream base64_in(get_fftr_stringstream()), decompressed_in, decompressed_out;
dlib::base64 base64_coder;
dlib::compress_stream::kernel_1ea compressor;
base64_in = get_fftr_stringstream();
base64_coder.decode(base64_in, decompressed_in);
compressor.decompress(decompressed_in, decompressed_out);

View File

@ -3,7 +3,7 @@
#include <sstream>
inline std::stringstream get_fftr_stringstream()
inline std::string get_fftr_stringstream()
{
std::stringstream ss;
ss << "gREgHkVPSRDT5z8rk175NS624DOfWDQcPg2MOBWP6zKp5jxHZcD2U1VxamzdjaOSqfLISuO5XxmI";
@ -3037,7 +3037,7 @@ inline std::stringstream get_fftr_stringstream()
ss << "7JaHbCjsyBzkKxy4v6APayQluxVwujyu6ln+IUmGUzRs2mUgaYziWzuGopQ/bwqfzpjh4qPNLgms";
ss << "bb2qcmOPSNthd0G/u1cEMK4knOauP0VYpl3yIJNQaVVflh1tkTTYSzHWmEOTyrrT3Yc4v2S1lD10";
ss << "dzewCaAafqZ1K1RJ7khOyQ6bGAvAXLGrDBYIuI2mIw6h2+PnD6rpT7IpcVkSHzB6Wa/ltwA=";
return ss;
return ss.str();
}
#endif /* FFTR_GOOD_DATA_H */