Skip to content
Snippets Groups Projects

Allow ADL lookup of parse and toStream

Merged Gerhard Raven requested to merge graven/Gaudi:allow-adl-parse-tostream into master

Currently, if one introduces a Gaudi::Property<T>, then there must be a corresponding StatusCode Gaudi::Parsers::parse(T&,const std::string&) in the namespace Gaudi::Parsers and a corresponding void Gaudi::Utils::toStream(const T&, std::stream&) in the namespace Gaudi::Utils.

This patch explicitly enables ADL lookup (with a fall-back to Gaudi::Parser::parse and Gaudi::Utils::toStream) so that it is sufficient to either define parse and toStream in the namespace in which T is defined, or add them as friend functions to T.

Merge request reports

Pipeline #51667 failed

Pipeline failed for d3945142 on graven:allow-adl-parse-tostream

Approved by

Merged by avatar (Apr 6, 2025 1:24pm UTC)

Merge details

  • Changes merged into master with 291ba412.
  • Deleted the source branch.

Pipeline #55116 passed

Pipeline passed for 291ba412 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading