Date: Mon, 9 Oct 2017 16:08:38 +0000
> After a while pondering, the best example I've got to demonstrate a
> need for the feature test macro is something like this:
>
> #ifdef __cpp_mandatory_copy_elision
>
> NoCopyNoMove indirectFactory() {
> return factory(1); // ill-formed prior to C++17
> }
> #endif
At this point I gather that no one has an objection to providing a macro for mandatory copy elision.
Should SD-6 contain an example like this one? It seems to me that there ought to be a different definition of indirectFactory under an #else, but I don't know what it should look like.
Clark
> need for the feature test macro is something like this:
>
> #ifdef __cpp_mandatory_copy_elision
>
> NoCopyNoMove indirectFactory() {
> return factory(1); // ill-formed prior to C++17
> }
> #endif
At this point I gather that no one has an objection to providing a macro for mandatory copy elision.
Should SD-6 contain an example like this one? It seems to me that there ought to be a different definition of indirectFactory under an #else, but I don't know what it should look like.
Clark
Received on 2017-10-09 18:08:50