in constructor, no matching function call to

前端 未结 2 1647
长情又很酷
长情又很酷 2021-01-28 05:58

My error

gridlist.h: In constructor ‘GridList::GridList(WINDOW*, int, int, int, int, int)’:
gridlist.h:11:47: error: no matching function for call to ‘Window::Wi         


        
2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-28 06:06

    Why are you just calling the constructor in the initlizer list ? usually you initialize member variables there so there would be member variable of type window there.

    GridList(WINDOW *parent = stdscr, int colors = MAG_WHITE, 
      int height = GRIDLIST_HEIGHT, int width = GRIDLIST_WIDTH, int y = 0, int x = 0)
      : m_window(parent, colors, height, width, y, x) { }
    

提交回复
热议问题