common: Add generic stream operators for enum types
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 4 Oct 2016 20:53:01 +0000 (22:53 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 4 Apr 2018 21:14:03 +0000 (23:14 +0200)
commit2c438150c5f66140ab087e559b9d390053963ad7
treea86e6db369989b8fb655f52785b9c736d165600f
parentec6b5babe3967c23ce55bb5d391e49286dad09c3
common: Add generic stream operators for enum types

These operators use the underlying type of a given enum to
(de)serialize to and from QDataStream.

(cherry picked from commit 933e1bf5264b6bbd91941f1f06e6e9675e24221a)
src/common/types.h