1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-30 21:44:26 +01:00

Add checks for std::chrono and std::function

This commit is contained in:
Matias Fontanini
2016-02-18 20:52:18 -08:00
parent 5c22cc7985
commit b326546229
5 changed files with 25 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
#include <functional>
int add(int x, int y) {
return x + y;
}
int main() {
std::function<int(int, int)> func;
func = std::bind(&add, std::placeholders::_1, std::placeholders::_2);
return (func(2, 2) == 4) ? 0 : 1;
}