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::serializeboost::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@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Hughes, James Sent: 24 May 2007 12:18 To: boost-users@lists.boost.org 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::serializeboost::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@lists.boost.org http://lists.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.