mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 11:31:53 +01:00
merge some changes from develop branch; modernize and clean-up code; remove support for compiling without POCO_WIN32_UTF8
This commit is contained in:
@@ -48,12 +48,19 @@ Session::Session(const std::string& connection,
|
||||
}
|
||||
|
||||
|
||||
Session::Session(const Session& other): _pImpl(other._pImpl),
|
||||
Session::Session(const Session& other):
|
||||
_pImpl(other._pImpl),
|
||||
_statementCreator(other._pImpl)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Session::Session(Session&& other) noexcept:
|
||||
_pImpl(std::move(other._pImpl)),
|
||||
_statementCreator(std::move(other._pImpl))
|
||||
{
|
||||
}
|
||||
|
||||
Session::~Session()
|
||||
{
|
||||
}
|
||||
@@ -67,6 +74,14 @@ Session& Session::operator = (const Session& other)
|
||||
}
|
||||
|
||||
|
||||
Session& Session::operator = (Session&& other) noexcept
|
||||
{
|
||||
_pImpl = std::move(other._pImpl);
|
||||
_statementCreator = std::move(other._statementCreator);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void Session::swap(Session& other)
|
||||
{
|
||||
using std::swap;
|
||||
|
||||
Reference in New Issue
Block a user