‘Declaration’: template argument for ‘Sort’ can’t derive from ‘Sort’
The compiler can’t decide the mannequin argument from the required operate arguments.
The next instance generates error C2784 and reveals how you can repair it:
// C2784.cppModel class X {};Mannequin void f (X ) {}int essential () { X x; f (1); // C2784 // To repair the issue, attempt the next line as an alternative f (x);}}
Feedback
and publish them
Thanks.
Solutions To: Error C2784 – What Is It And How To Repair It?
- Earlier matter
Web page 1 of 1
Compiler Error C2784 Is Displayed When Instantiating STL Containers With UDT Parameter. How To Resolve This Drawback?
I Get Compiler Error C2955 After I Use The “utilizing” Declaration. How To Resolve This Drawback?