Created
December 4, 2020 21:25
-
-
Save asit-dhal/493ae0a29f87687bcc1bfc4abac0a3c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template<std::size_t> auto get(const B&); | |
template<> auto get<0>(const B &b) { return b.a; } | |
template<> auto get<1>(const B &b) { return b.c; } | |
template<> auto get<2>(const B &b) { return b.d; } | |
template<> auto get<3>(const B &b) { return b.e; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment