Use fold expressions to reduce std::variant instantiation depth
authorBarrett Adair <barrettellisadair@gmail.com>
Fri, 6 Jan 2017 15:27:01 +0000 (15:27 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 6 Jan 2017 15:27:01 +0000 (15:27 +0000)
commit258ee761eb789d1eb6302c79906d9c0f5b0b3cb0
tree76bf231a2169f6f213e5a26c88069d61b7868ca6
parent1ec62aa9e11eb1f915324634d889e84450b272b1
Use fold expressions to reduce std::variant instantiation depth

2017-01-06  Barrett Adair  <barrettellisadair@gmail.com>
    Jonathan Wakely  <jwakely@redhat.com>

* include/std/variant (variant, swap): Replace __and_ usage with fold
expressions.

Co-Authored-By: Jonathan Wakely <jwakely@redhat.com>
From-SVN: r244163
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/variant