SFML и C++ Уроки \ Разработка игр › Форумы › SFML Graphics › Expression must have pointer-to-function type › Ответ в теме: Expression must have pointer-to-function type
C++
1 2 3 4 5 6 7 8 |
std::vector<std::function<void(float , int, float)> > v = { [](float _rad, int _edge, float _height ) { /*...*/ }, [](float _rad, int _edge, float _height) { /*...*/ }, [](float _rad, int _edge, float _height) { /*...*/ }, [](float _rad, int _edge, float _height) { /*...*/ } }; v[0]( 50.0f, 15, 125.0.f ); v[1]( 30.0f, 18, 75.0.f ); |