|
Boost : |
Subject: Re: [boost] [local] Help for the Alternatives section
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-05-08 05:02:32
On 07/05/2011 18:00, Lorenzo Caminiti wrote:
> Hello Mathias, I'm curious if you have an opinion about the usefulness
> of Boost.Local supporting multiple types (but not generic types) for
> its function parameters.
Probably not worth the effort, it seems that it would be a lot of work.
And you can still have overloading by doing it like this:
void BOOST_LOCAL_FUNCTION(const double& num, const bind& sep)
std::cout << num << std::endl;
BOOST_LOCAL_FUNCTION_NAME(l1)
void BOOST_LOCAL_FUNCTION(const std::string& num, const bind& sep)
std::cout << num << std::endl;
BOOST_LOCAL_FUNCTION_NAME(l2)
auto /* or the real type */ l = overload(l1, l2);
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk