
8 May
2011
8 May
'11
9:02 a.m.
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);