mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-17 03:03:23 +02:00
Various feature additions and fixes:
- asynchronous execution for Data::Statement - ActiveMethod copy and assignment - added Data components to $POCO_BASE/components - SQLite 64-bit integer default - SessionPool timer seconds to milliseconds - ODBC fix for subsequent calls to execute() - std::deque (instead of std::vector) as default container
This commit is contained in:
@@ -115,10 +115,27 @@ public:
|
||||
return result;
|
||||
}
|
||||
|
||||
ActiveMethod(const ActiveMethod& other):
|
||||
_pOwner(other._pOwner),
|
||||
_method(other._method)
|
||||
{
|
||||
}
|
||||
|
||||
ActiveMethod& operator = (const ActiveMethod& other)
|
||||
{
|
||||
ActiveMethod tmp(other);
|
||||
swap(tmp);
|
||||
return *this;
|
||||
}
|
||||
|
||||
void swap(ActiveMethod& other)
|
||||
{
|
||||
std::swap(_pOwner, other._pOwner);
|
||||
std::swap(_method, other._method);
|
||||
}
|
||||
|
||||
private:
|
||||
ActiveMethod();
|
||||
ActiveMethod(const ActiveMethod&);
|
||||
ActiveMethod& operator = (const ActiveMethod&);
|
||||
|
||||
OwnerType* _pOwner;
|
||||
Callback _method;
|
||||
@@ -190,10 +207,27 @@ public:
|
||||
return result;
|
||||
}
|
||||
|
||||
ActiveMethod(const ActiveMethod& other):
|
||||
_pOwner(other._pOwner),
|
||||
_method(other._method)
|
||||
{
|
||||
}
|
||||
|
||||
ActiveMethod& operator = (const ActiveMethod& other)
|
||||
{
|
||||
ActiveMethod tmp(other);
|
||||
swap(tmp);
|
||||
return *this;
|
||||
}
|
||||
|
||||
void swap(ActiveMethod& other)
|
||||
{
|
||||
std::swap(_pOwner, other._pOwner);
|
||||
std::swap(_method, other._method);
|
||||
}
|
||||
|
||||
private:
|
||||
ActiveMethod();
|
||||
ActiveMethod(const ActiveMethod&);
|
||||
ActiveMethod& operator = (const ActiveMethod&);
|
||||
|
||||
OwnerType* _pOwner;
|
||||
Callback _method;
|
||||
|
Reference in New Issue
Block a user