$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Hughes, James (jhughes_at_[hidden])
Date: 2007-05-24 07:32:33
Ignore post - have figured it out - couple of errors - because I am
instanatiating a function, not the whole class, I needed to remove the
class statement, and secondly, I had missed out the void as the return
type for the serialise function
This works.
template void
LCPanel::serialize<boost::archive::xml_iarchive>(boost::archive>::xml_ia
r> chive&, unsigned int)
And now application links to library no problem.
James
> -----Original Message-----
> From: boost-users-bounces_at_[hidden] 
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of 
> Hughes, James
> Sent: 24 May 2007 12:18
> To: boost-users_at_[hidden]
> Subject: [Boost-users] [Serialisation] Explicit instantiation 
> of serializewhen used in library
> 
> Hello all (but probably mostly Robert)
> 
> I have a class in a library which has a serialise function. 
> It's defined in the header but implemented in the cpp file.
> 
> However, I am getting an unresolved error, because when the 
> library is build there is no need to instantiate the 
> serialise function, as its only called by something using the library.
> 
> So, I have tried to explicitly instantiate the missing 
> function in the cpp file in the library, after the serialise 
> implementation
> 
>     template class
> LCPanel::serialize<boost::archive::xml_iarchive>(boost::archiv
> e::xml_iar
> chive&, unsigned int)
> 
> However, this line gives an error
> 
>     Expected ')' before '&' token
> 
> I'm not sure where I am going wrong here as syntax appears 
> correct (but I am not sure of), any ideas?
> 
> James
> 
> This message (including any attachments) contains 
> confidential and/or proprietary information intended only for 
> the addressee.  
> Any unauthorized disclosure, copying, distribution or 
> reliance on the contents of this information is strictly 
> prohibited and may constitute a violation of law.  If you are 
> not the intended recipient, please notify the sender 
> immediately by responding to this e-mail, and delete the 
> message from your system.  If you have any questions about 
> this e-mail please notify the sender immediately.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://listarchives.boost.org/mailman/listinfo.cgi/boost-users
> 
This message (including any attachments) contains confidential 
and/or proprietary information intended only for the addressee.  
Any unauthorized disclosure, copying, distribution or reliance on 
the contents of this information is strictly prohibited and may 
constitute a violation of law.  If you are not the intended 
recipient, please notify the sender immediately by responding to 
this e-mail, and delete the message from your system.  If you 
have any questions about this e-mail please notify the sender 
immediately.