Error C2993 when exporting a template Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
maxbld
Earned some good credits
Earned some good credits
Posts: 111
Joined: Wed Jan 30, 2013 10:49 pm

Error C2993 when exporting a template

Post by maxbld » Fri Apr 14, 2017 3:45 pm

Hi all,

Does anybody know why

Code: Select all

      #define VediDBDLLEXPORT __declspec(dllexport)

...

		template <class VediDBDLLEXPORT T> void SortIt(dba::Database::StoreType type, int col){
...		
Should give Error C2993 'T': illegal type for non-type template parameter 'T'?

I used to compile on VS2010 and worked, now on VS2015 doesn't... Can that be part of the problem?

Thank you a lot, BR,
Max-

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4366
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Error C2993 when exporting a template

Post by ONEEYEMAN » Fri Apr 14, 2017 5:21 pm

Hi,
First Google hit is here.

Thank you.

maxbld
Earned some good credits
Earned some good credits
Posts: 111
Joined: Wed Jan 30, 2013 10:49 pm

Re: Error C2993 when exporting a template

Post by maxbld » Fri Apr 14, 2017 11:25 pm

ONEEYEMAN wrote:Hi,
First Google hit is here.

Thank you.
Uh, yes, first thing I've done was.googleing it, but I couldn't figure out a key that would have given the result you kindly provided.

Thanks, BR,
Max.

Post Reply