Is there a way one can do this? As far as I know there isn't since the language does not support it but I wanted to confirm
template <typename Something>
ConceptCheck<auto> return_something(const Something& something) {
return process_something(something);
}
This would be nice to have in some cases. For example where one wants to document the concepts supported by a return type (which would otherwise be a simple auto, requiring the reader to go elsewhere looking for information).
If this seems like a decent thing to propose, I would like to propose this to the standard for the future, can someone direct me about to how to do so? Are return type concepts already in the C++20 standard?
Thanks!
You can find just about anything you might want to know about the ongoing standardization effort at https://isocpp.org/
Specifically, https://isocpp.org/blog/2016/12/2016-11-post-issaquah-mailing-available lists all of the documents in the most recent mailing, with the text to the current draft of C++17.
I can tell you that Concepts has not been accepted into the draft standard at this time. That could change in the next meeting, though.