blob: 88b0610d9a417d14f993dcccd00b597ea59a2f8e [file] [log] [blame]
#pragma once
#include <utility>
namespace sdbusplus
{
namespace server
{
namespace binding
{
namespace details
{
/** Utility for converting C++ types prior to 'append'ing to a message.
*
* Some C++ types require conversion to a native dbus type before they
* can be inserted into a message. This template provides a general no-op
* implementation for all other types.
*/
template <typename T>
T&& convertForMessage(T&& t)
{
return std::forward<T>(t);
}
}
}
}
}