본문 바로가기

Debug/ error C2783: could not deduce template argument

2020. 2. 20.

템플릿 인자가 함수 파라미터로 명시되지 않을 경우, 타입명을 앞쪽으로 하여, 누락된 타입만 명시하도록 한다.

 

https://stackoverflow.com/questions/2920600/strange-template-error-error-c2783-could-not-deduce-template-argument

 

Strange Template error : error C2783: could not deduce template argument

I have created a simple function with 2 diffrernt template arguments t1, t2 and return type t3. So far no compilation error. But when Itry to call the function from main, I encounter error C2783. I

stackoverflow.com

 

댓글