Skip to content
Snippets Groups Projects
Commit 291ba412 authored by Benedikt Hegner's avatar Benedikt Hegner
Browse files

Allow ADL lookup of parse and toStream

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](http://en.cppreference.com/w/cpp/language/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`.

See merge request !242
parents dc1b505f d3945142
No related branches found
No related tags found
Loading
Pipeline #
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment