On 24/07/2017 13:37, Edward Diener via Boost wrote:
On 7/23/2017 2:50 PM, John Maddock via Boost wrote:
Folks, I think I'm looking to add a new C++11 defect macro, but don't know what the feature is called, nor can I see a way of detecting it with clang's __has_feature function.
The code I want to enable involves function overloading based on a decltype return type as in:
I never realized that function overloading could occur based on any return type. I always thought it had to be based on the parameter types. Is this part of the C+11 standard ? Where in the standard is this specified ? The name mangling of the gnu ABI (used by most unix-like) does not encode the return type, and the result does not have to be used when the function is called. So if such a functionality is added, the mangling issue alone will hurt backward compatibility real bad.