diff options
author | Nathan Binkert <binkertn@umich.edu> | 2004-01-29 17:44:08 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2004-01-29 17:44:08 -0500 |
commit | cb35f819c5326b37899695345ad78e032e8d7cdf (patch) | |
tree | d48522853b774be3c4a39e93ee63eb60448ddda7 /base/cprintf.hh | |
parent | fe4d9f124f6234a1b431dc33433a88ee18d61db9 (diff) | |
download | gem5-cb35f819c5326b37899695345ad78e032e8d7cdf.tar.xz |
delete the data in the arglist when the list is destroyed,
not while printing out the data. This allows the data
to be dumped more than once.
base/cprintf.hh:
need a destructor
--HG--
extra : convert_revision : 235e9fe24488ac4c0ae1b562ef9fa6e0bd1e899c
Diffstat (limited to 'base/cprintf.hh')
-rw-r--r-- | base/cprintf.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/base/cprintf.hh b/base/cprintf.hh index ac34cd252..ca5c08b16 100644 --- a/base/cprintf.hh +++ b/base/cprintf.hh @@ -89,6 +89,7 @@ class ArgList public: ArgList() : stream(&std::cout) {} + ~ArgList(); template<class T> void append(const T &data) { |