> Date: Mon, 22 Aug 2011 22:04:44 +0200
> From: mstsxfx@gmail.com
> To: misutkajunior@hotmail.com
> CC: pdfedit-devel@lists.sourceforge.net
> Subject: Re: [Pdfedit-cvs] pdfedit/src/kernel cobject2xpdf.cc,1.23,1.24
>
> On Mon, Aug 22, 2011 at 07:20:16PM +0000, Jozef Misutka wrote:
> >
> > http://msdn.microsoft.com/en-us/library/btack038%28v=vs.80%29.aspx
>
> "
> Error Message
> 'function' : an explicit specialization may not be explicitly instantiated
>
> A function cannot be both explicitly specialized and explicitly instantiated.
>
> The following sample generates C3416:
>
> // C3416.cpp
> template <class T>
> void f();
>
> template <>
> void f<int>() {}
> template void f<int>(); // C3416 delete this or previous line to resolve
> "
>
> What is the other instance? Why didn't your remove the other one?
> Do we
> really want to have specializations for all types but pNULL?

have you tried to look into the code? like 5 lines above the changed one?

>
> This looks really messy.
>
> >
> > > Date: Mon, 22 Aug 2011 16:52:50 +0200
> > > From: mstsxfx@gmail.com
> > > To: misutkajunior@hotmail.com
> > > CC: pdfedit-devel@lists.sourceforge.net
> > > Subject: Re: [Pdfedit-cvs] pdfedit/src/kernel cobject2xpdf.cc,1.23,1.24
> > >
> > > On Sun, May 22, 2011 at 12:01:42PM +0200, Michal Hocko wrote:
> > > > On Sat, May 21, 2011 at 10:13:23PM +0000, Jozef Misutka wrote:
> > > > > Update of /cvsroot/pdfedit/pdfedit/src/kernel
> > > > > In directory vz-cvs-2.sog:/tmp/cvs-serv3594
> > > > >
> > > > > Modified Files:
> > > > > cobject2xpdf.cc
> > > > > Log Message:
> > > > > vs2008 compilation issue - expl. specialization could not be instantiated
> > > > >
> > > > >
> > > > > Index: cobject2xpdf.cc
> > > > > ===================================================================
> > > > > RCS file: /cvsroot/pdfedit/pdfedit/src/kernel/cobject2xpdf.cc,v
> > > > > retrieving revision 1.23
> > > > > retrieving revision 1.24
> > > > > diff -u -d -r1.23 -r1.24
> > > > > --- cobject2xpdf.cc 14 May 2011 21:02:57 -0000 1.23
> > > > > +++ cobject2xpdf.cc 21 May 2011 22:13:21 -0000 1.24
> > > > > @@ -732,7 +732,6 @@
> > > > > template void simpleValueFromXpdfObj<pReal, double&> (const Object&, double& val);
> > > > > template void simpleValueFromXpdfObj<pString, string&> (const Object&, string& val);
> > > > > template void simpleValueFromXpdfObj<pName, string&> (const Object&, string& val);
> > > > > -template void simpleValueFromXpdfObj<pNull, NullType&> (const Object&, NullType& val);
> > > > > template void simpleValueFromXpdfObj<pRef, IndiRef&> (const Object&, IndiRef& val);
> > > >
> > > > Why this works for other specializations? Which code failed to compile?
> > >
> > > ping.
> > >
> > > --
> > > Michal Hocko
> >
>
> --
> Michal Hocko