Boost logo

Boost Users :

Subject: Re: [Boost-users] function template with a universal reference to a specific type
From: Ireneusz Szcześniak (irek.szczesniak_at_[hidden])
Date: 2018-12-31 17:53:59

Hi Andrea,

Yes, I need to provide different implementations of foo for different
types, but a single function implementation for a given type. That
implementation would be, most probably, a function template overload.


On 31.12.2018 11:51, Andrea Bocci wrote:
> Hi Irek,
> I am confused, because you wrote
> > I need to provide different implementations of foo for different types
> and
> > it would be more generic to provide a single function implementation
> which I find contradictory.
> Do you mean that you want to write a templated implementation once,
> and that implementation should call different function/methods/etc.
> depending on the templated type ?
> Regards,
> .Andrea

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at