Hi Robert,
Try
///////////////////////// without effect
////////////////////////////////////
template void
CSerTest::serialize<boost::archive::xml_oarchive>(boost::archive::xml_oarchive&,
const unsigned int ); // add const !!!
// main.cpp
#include <fstream>
#include "Class.hpp"
#include <boost/archive/xml_oarchive .hpp>
#include <boost/archive/xml_iarchive.hpp>
///////////////////////// without effect
////////////////////////////////////
template void
CSerTest::serialize<boost::archive::xml_oarchive>(boost::archive::xml_oarchive&,
const unsigned int ); // "const" added!! to match template in declaration
int main()
{
const CSerTest instance; // check rationale on this.
std::ofstream ofs( "out_file.txt" );
boost::archive::xml_oarchive oxa( ofs );
oxa << BOOST_SERIALIZATION_NVP(instance);
}
**** this should work.