|
-
July 19th, 2011, 12:13 PM
#9
Re: VC++2010 template bug ?
 Originally Posted by D_Drmmr
Moving the definition below main also prevents the error, though that's probably not a very practical workaround.
yes, it seems also working whenever an instantion occurs before the compiler find the function definition, but again not that useful ...
 Originally Posted by Codeplug
>> for now, I'll stick with putting the function body definition along with its declaration
That seems to be the most practical work-around.
agreed, I can also forward arguments to an "implementation" function defined elsewhere if needed ...
BTW, I'm quite disappointed by the current VC template support, I have to say. For example, I thought they would have fixed SFINAE support in this release, whilst we're still forced to use workarounds like boost::lazy_enable_if in some cases ...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|