#include <memory>
+namespace xapp {
+
// -------------- smart pointer support --------------------------------
/*
Pointers to a lot of things in the RMR message aren't directly
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;
/*
*/
using Msg_component = std::unique_ptr<unsigned char, unfreeable>;
+
+} // namespace
#endif