$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [Boost serialization] non intrusive & derivated class
From: agrosjea (arnaud.grosjean_at_[hidden])
Date: 2010-06-22 06:20:15
I actually found a way to use friendship in my sample code. It looks like
class Father{
protected :
string who;
template<class Archive>
friend void serialize(Archive& , Father&, const unsigned int);
public :
Father(){ who = "father";};
virtual void whoAreYou(){ cout << "Hello, I am the " << this->who << endl;
};
};
Seems to work but is it the cleanest way to make it ?
-- View this message in context: http://old.nabble.com/-Boost-serialization--non-intrusive---derivated-class-tp28958229p28958415.html Sent from the Boost - Users mailing list archive at Nabble.com.