[Dune-devel] [PATCH] Use unqualified calls to allow ADL.
Atgeirr Rasmussen
Atgeirr.Rasmussen at sintef.no
Tue Sep 1 23:30:06 CEST 2015
1. sep. 2015 kl. 21:36 skrev Christian Engwer <christian.engwer at uni-muenster.de>:
> Dear Atgeirr,
>
>> The solution (and I have come to believe this is a common pattern) is
>> to use unqualified calls, with using-statements to include implementations
>> for standard types and using ADL to find the custom functions in the
>> namespace of the user-defined class.
>
> as Carsten pointed out, we use these unqualified calls in the
> specialization of the fvmeta namespace. True, we might remove some of
> the specializations, but never the less it _should_ work. Can you
> please provide a minimal working example, so that we can reproduce
> this bug?
I will try to provide a minimal example tomorrow. The functions in fvmeta are
not the problem, the calls to them (with fvmeta:: prefixed) are, I do not see how
that could work for overloads not declared before the call?
I have learnt lots of surprising things about ADL and how it works the last few
days though, and it could very well be that I have more surprises ahead of me :-)
Atgeirr
More information about the Dune-devel
mailing list