tutorial updates

[SVN r21615]
This commit is contained in:
Dave Abrahams
2004-01-12 02:49:55 +00:00
parent a6b2a098c1
commit 06e1fa88b9
20 changed files with 3805 additions and 325 deletions

View File

@ -23,7 +23,7 @@ struct node_base
}
virtual void print(std::ostream& s) const = 0;
virtual void twice() = 0;
virtual void double_me() = 0;
void append(node_base* p)
{
@ -51,7 +51,7 @@ struct node : node_base
{}
void print(std::ostream& s) const { s << this->m_value; }
void twice() { m_value += m_value; }
void double_me() { m_value += m_value; }
private:
T m_value;