Skip to content

Instantly share code, notes, and snippets.

@tek-nishi
Last active August 29, 2015 14:24
Show Gist options
  • Save tek-nishi/955879cd50efa4ab4c12 to your computer and use it in GitHub Desktop.
Save tek-nishi/955879cd50efa4ab4c12 to your computer and use it in GitHub Desktop.
初期化子リストでビルドエラー
#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