Skip to content

Commit

Permalink
iox-#1150 Add noexcept ServiceDiscovery constructor
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Killat <[email protected]>
  • Loading branch information
MatthiasKillat committed Feb 24, 2022
1 parent 1879568 commit c299e37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ enum class ServiceDiscoveryEvent : popo::EventEnumIdentifier
class ServiceDiscovery
{
public:
ServiceDiscovery() = default;
ServiceDiscovery() noexcept;

ServiceDiscovery(const ServiceDiscovery&) = delete;
ServiceDiscovery& operator=(const ServiceDiscovery&) = delete;
ServiceDiscovery(ServiceDiscovery&&) = delete;
Expand Down
4 changes: 4 additions & 0 deletions iceoryx_posh/source/runtime/service_discovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ namespace iox
{
namespace runtime
{
ServiceDiscovery::ServiceDiscovery() noexcept
{
}

void ServiceDiscovery::update()
{
// allows us to use update and hence findService concurrently
Expand Down

0 comments on commit c299e37

Please sign in to comment.