Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1306

Answer by HolyBlackCat for Different behavior when using the typetraits directly vs in a concept for r-value references

$
0
0

The concept only receives the auto part without &&, so int in your case.

Note that since it's a forwarding reference, passing an lvalue would deduce the auto to T &, and that's what the concept would receive.


Viewing all articles
Browse latest Browse all 1306

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>