Switch to fully supported C++17

This commit is contained in:
sangelovic
2020-02-01 22:47:04 +01:00
committed by Stanislav Angelovič
parent d591b69f92
commit 975f1bf07f
19 changed files with 129 additions and 192 deletions

View File

@@ -35,7 +35,7 @@
#include <poll.h>
#include <sys/eventfd.h>
namespace sdbus { namespace internal {
namespace sdbus::internal {
Connection::Connection(std::unique_ptr<ISdBus>&& interface, const BusFactory& busFactory)
: iface_(std::move(interface))
@@ -454,11 +454,10 @@ Connection::LoopExitEventFd::~LoopExitEventFd()
close(fd);
}
}}
}
namespace sdbus {
namespace sdbus::internal {
namespace internal {
std::unique_ptr<sdbus::internal::IConnection> createConnection()
{
auto connection = sdbus::createConnection();
@@ -466,8 +465,11 @@ std::unique_ptr<sdbus::internal::IConnection> createConnection()
auto connectionInternal = dynamic_cast<sdbus::internal::IConnection*>(connection.get());
return std::unique_ptr<sdbus::internal::IConnection>(connectionInternal);
}
}
namespace sdbus {
std::unique_ptr<sdbus::IConnection> createConnection()
{
return createSystemBusConnection();