小编cp1*_*p18的帖子

std :: invoke在VS 2015中找不到匹配的重载函数发现错误

我对C++和SDL很新,我正在尝试创建一个不断更新屏幕的线程,但我不断收到以下错误:

'std :: invoke找不到匹配的重载函数'

'无法专门化函数模板'unknown-type std :: invoke(Callable &&,_ Types && ...)''

main.cpp中

  int main(int argc, char **argv) {
    using namespace std::placeholders;
    bool gameover = false;
    int test;
    std::string filepath = getResourcePath("Lesson1");

    if (SDL_Init(SDL_INIT_EVERYTHING) != 0) {               // Intializes SDL functionality
        std::cout << "Could not start SDL" << std::endl;
        std::cin >> test;
        return 1;
    }
    else {
        std::cout << "SDL started successfully!" << std::endl;
    }

    viewWindow window;                                  // Class representing the window in which the program is run.


    SDL_Renderer …
Run Code Online (Sandbox Code Playgroud)

c++ c++11

13
推荐指数
1
解决办法
2万
查看次数

标签 统计

c++ ×1

c++11 ×1