Created
January 29, 2019 18:18
-
-
Save twof/fc6d74462d13a0ef09dd423819864603 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<typename Policy, typename ...Args> | |
auto set_window_management_policy(Args& ... args) -> SetWindowManagementPolicy | |
{ | |
return SetWindowManagementPolicy{[&args...](WindowManagerTools const& tools) -> std::unique_ptr<WindowManagementPolicy> | |
{ return std::make_unique<Policy>(tools, args...); }}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment