Created
June 8, 2017 00:47
-
-
Save EricWF/52e6790fe462513471d96b957c0580d5 to your computer and use it in GitHub Desktop.
This file contains 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 <class ...Locks> | |
struct scoped_lock; | |
template <> | |
struct scoped_lock<> { | |
explicit scoped_lock() {} | |
}; | |
template <class ...Locks> | |
struct scoped_lock { | |
explicit scoped_lock(Locks&...) {} | |
}; | |
scoped_lock l{}; | |
int main() {((void)l);} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment