Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Class templates and inlining (OT)

Author: Sune Fischer

Date: 02:20:57 12/24/02

Go up one level in this thread


On December 24, 2002 at 03:50:39, Allen Lake wrote:

>I think that this error indicates that, somewhere in either your code or
>possibly in the Visual C++ library code, an instance of CUtil is being declared
>with a statement such as:
>
>CUtil utils;
>
>rather than
>
>CUtil<int> util;
>
>A simple example is found here:
>
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/C2955.asp

Yes that is most likely the problem, I think David said the same.
I have been persuaded to use a namespace instead, just hope that thing can
inline :)

>If you can't find a declaration like this in your code, then it's probably
>buried in one of the Visual C++ libraries.  You could then change the name of
>your utility class to something like FrenzeeUtil and solve the problem.

That might be an idea too :)

-S.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.