Skip to content
Snippets Groups Projects

Draft: Enforce TaggerType enum usage

Open Vukan Jevtic requested to merge tagger_type_enum_usage into master
1 unresolved thread
3 files
+ 21
39
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -40,7 +40,7 @@ void FlavourTagPacker::pack( const Data& ft, PackedData& pft, PackedDataVector&
auto& ptagger = pfts.taggers().emplace_back();
// save data members
ptagger.type = T.type();
ptagger.type = static_cast<decltype( ptagger.type )>( T.type() );
ptagger.decision = to_underlying( T.decision() );
ptagger.omega = StandardPacker::fraction( T.omega() );
@@ -102,7 +102,7 @@ StatusCode FlavourTagPacker::unpack( const PackedData& pft, Data& ft, const Pack
auto& tagger = taggers.emplace_back();
// set the tagger members
tagger.setType( ptagger.type );
tagger.setType( static_cast<Tagger::TaggerType>( ptagger.type ) );
tagger.setDecision( Tagger::TagResult{ ptagger.decision } );
tagger.setOmega( StandardPacker::fraction( ptagger.omega ) );
Loading