mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 19:10:20 +01:00
Solve undefined MemoryStream
This commit is contained in:
@@ -39,6 +39,7 @@
|
|||||||
#include "Poco/Foundation.h"
|
#include "Poco/Foundation.h"
|
||||||
#include "CppUnit/TestCase.h"
|
#include "CppUnit/TestCase.h"
|
||||||
#include "Poco/NumericString.h"
|
#include "Poco/NumericString.h"
|
||||||
|
#include "Poco/MemoryStream.h"
|
||||||
|
|
||||||
|
|
||||||
class StringTest: public CppUnit::TestCase
|
class StringTest: public CppUnit::TestCase
|
||||||
@@ -122,7 +123,7 @@ private:
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
bool parseStream(const std::string& s, T& value)
|
bool parseStream(const std::string& s, T& value)
|
||||||
{
|
{
|
||||||
MemoryInputStream istr(s.data(), s.size());
|
Poco::MemoryInputStream istr(s.data(), s.size());
|
||||||
#if !defined(POCO_NO_LOCALE)
|
#if !defined(POCO_NO_LOCALE)
|
||||||
istr.imbue(std::locale::classic());
|
istr.imbue(std::locale::classic());
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user