X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fmessaging%2Fmsg_component.hpp;h=95e445c62e7875dcc0cb5fb9e7498a7f4fe9fbfb;hb=e64778dac480d66d93449efd3e9767cea4f980f9;hp=d707257b0a6770dcb764f38d3b551cd7df06a111;hpb=8cb3c6f5d5062b83f17a5739e0671490beb543de;p=ric-plt%2Fxapp-frame-cpp.git diff --git a/src/messaging/msg_component.hpp b/src/messaging/msg_component.hpp index d707257..95e445c 100644 --- a/src/messaging/msg_component.hpp +++ b/src/messaging/msg_component.hpp @@ -35,6 +35,8 @@ #include +namespace xapp { + // -------------- smart pointer support -------------------------------- /* Pointers to a lot of things in the RMR message aren't directly @@ -45,7 +47,7 @@ such a smart pointer, and does _nothing_ when called. */ typedef struct { - void operator()( unsigned char * p ){} + void operator()( unsigned char * p ) const { /* empty to prevent free */ } } unfreeable; /* @@ -54,4 +56,6 @@ typedef struct { */ using Msg_component = std::unique_ptr; + +} // namespace #endif