Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
PhosphorDBus::HasDBusStreaming< T, typename > Struct Template Reference

Compile-time check that a type has QDBusArgument streaming operators. More...

#include <phosphor-dbus/include/PhosphorDBus/Streaming.h>

Inheritance diagram for PhosphorDBus::HasDBusStreaming< T, typename >:
[legend]

Detailed Description

template<typename T, typename = void>
struct PhosphorDBus::HasDBusStreaming< T, typename >

Compile-time check that a type has QDBusArgument streaming operators.

Use in adaptor / marshalling headers to catch a missing operator<< / operator>> definition at build time rather than hitting a runtime "demarshalling function failed" crash.

"MyEntry needs QDBusArgument operator<< and operator>>");
Compile-time check that a type has QDBusArgument streaming operators.
Definition Streaming.h:27

The documentation for this struct was generated from the following file: