Skip to content
Snippets Groups Projects

packer/unpacker cleanup / consolidation

Merged Gerhard Raven requested to merge event_packer_update into 2024-patches
Compare and
55 files
+ 828
1137
Compare changes
  • Side-by-side
  • Inline
Files
55
@@ -51,11 +51,16 @@ namespace LHCb::Event {
Ret>;
template <typename T>
void check_null_pointer( T* ptr, std::string_view sv ) {
void check_null_pointer( T const* ptr, std::string_view sv ) {
if ( !ptr )
throw GaudiException( "null pointer not allowed at this point", std::string{sv}, StatusCode::FAILURE );
}
template <typename T>
void check_null_pointer( SmartRef<T> const& ref, std::string_view sv ) {
return check_null_pointer( ref.target(), sv );
}
} // namespace details
/* when we have different accessor names, we use ADL, with as default this indirection layer */
Loading