Allow implicit conversion factory->resource

reduces boilerplate
This commit is contained in:
mkrzewic
2018-12-18 15:08:43 +01:00
committed by Mohammad Al-Turany
parent 5e24fdba8b
commit 4dc37efc12
2 changed files with 3 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ class FairMQTransportFactory
/// Get a pointer to the associated polymorphic memory resource
fair::mq::ChannelResource* GetMemoryResource() { return &fMemoryResource; }
operator fair::mq::ChannelResource*() { return &fMemoryResource; }
/// @brief Create empty FairMQMessage
/// @return pointer to FairMQMessage