mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-30 13:47:10 +01:00
- FileStream_WIN32 constructor openmode argument
- DynamicAnyTest and AnyTest warning disable for VS 2003
This commit is contained in:
@@ -46,7 +46,7 @@ namespace Poco {
|
|||||||
|
|
||||||
|
|
||||||
FileStreamBuf::FileStreamBuf():
|
FileStreamBuf::FileStreamBuf():
|
||||||
BufferedBidirectionalStreamBuf(BUFFER_SIZE, 0),
|
BufferedBidirectionalStreamBuf(BUFFER_SIZE, std::ios::in | std::ios::out),
|
||||||
_handle(INVALID_HANDLE_VALUE),
|
_handle(INVALID_HANDLE_VALUE),
|
||||||
_pos(0)
|
_pos(0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -38,6 +38,9 @@
|
|||||||
#include "Poco/Bugcheck.h"
|
#include "Poco/Bugcheck.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#if defined(_MSC_VER) && _MSC_VER < 1400
|
||||||
|
#pragma warning(disable:4800)//forcing value to bool 'true' or 'false'
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace Poco;
|
using namespace Poco;
|
||||||
|
|
||||||
@@ -112,9 +115,9 @@ void AnyTest::testVector()
|
|||||||
tmp.push_back(3);
|
tmp.push_back(3);
|
||||||
Any a = tmp;
|
Any a = tmp;
|
||||||
assert (a.type() == typeid(std::vector<int>));
|
assert (a.type() == typeid(std::vector<int>));
|
||||||
std::vector<int>tmp2 = AnyCast<std::vector<int> >(a);
|
std::vector<int> tmp2 = AnyCast<std::vector<int> >(a);
|
||||||
const std::vector<int >& vecCRef = RefAnyCast<std::vector<int> >(a);
|
const std::vector<int>& vecCRef = RefAnyCast<std::vector<int> >(a);
|
||||||
std::vector<int >& vecRef = RefAnyCast<std::vector<int> >(a);
|
std::vector<int>& vecRef = RefAnyCast<std::vector<int> >(a);
|
||||||
vecRef[0] = 0;
|
vecRef[0] = 0;
|
||||||
assert (vecRef[0] == vecCRef[0]);
|
assert (vecRef[0] == vecCRef[0]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,11 @@
|
|||||||
#include "Poco/DynamicStruct.h"
|
#include "Poco/DynamicStruct.h"
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(_MSC_VER) && _MSC_VER < 1400
|
||||||
|
#pragma warning(disable:4800)//forcing value to bool 'true' or 'false'
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
using namespace Poco;
|
using namespace Poco;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user