24     static_assert(std::is_same<std::underlying_type<Leosac::Auth::SourceType>::type,
 
   26                   "Bad underlying type for enum");
 
   27     msg << static_cast<uint8_t>(t);
 
   33     static_assert(std::is_same<std::underlying_type<Leosac::Auth::SourceType>::type,
 
   35                   "Bad underlying type for enum");
 
   45         std::is_same<std::underlying_type<Leosac::Auth::AccessStatus>::type,
 
   47         "Bad underlying type for enum");
 
   48     msg << static_cast<uint8_t>(st);
 
   55         std::is_same<std::underlying_type<Leosac::Auth::AccessStatus>::type,
 
   57         "Bad underlying type for enum");