Last active
August 29, 2015 14:24
-
-
Save tek-nishi/955879cd50efa4ab4c12 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
#include <map> | |
#include <functional> | |
std::map<int, std::function<void ()>> func; | |
struct Hoge { | |
void f() {} | |
}; | |
int main() { | |
Hoge h; | |
func = { | |
{ 0, std::bind(&Hoge::f, &h) } | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment