- FileStream_WIN32 constructor openmode argument

- DynamicAnyTest and AnyTest warning disable for VS 2003
This commit is contained in:
Aleksandar Fabijanic
2008-02-18 16:32:01 +00:00
parent 94eb954cc6
commit 40445c9d3e
3 changed files with 12 additions and 4 deletions

View File

@@ -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)
{ {

View File

@@ -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]);
} }

View File

@@ -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;