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