$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Piyush Kapadia (piyush.kapadia_at_[hidden])
Date: 2005-10-22 15:42:06
In following code - archive results in tag name as T as T is used in
BOOST_SERIALIZATION_NVP(T) statement.
Instead I want actual type name for T, instead of just T as Tag name, how to
achieve this ???
template<class T>
void Serialize(const char * filename)
{
std::ofstream ofs(filename);
assert(ofs.good());
boost::archive::xml_oarchive oa(ofs);
oa << BOOST_SERIALIZATION_NVP(T);
ofs.close();
}