diff options
author | Benjamin Kosnik <bkoz@gcc.gnu.org> | 1997-12-23 00:04:13 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 1997-12-23 00:04:13 +0000 |
commit | eeaf420b472bc097709c69c5509b43b5693b3cab (patch) | |
tree | 88f42b06f4b63d1cee57d766f051dd53d367dd97 | |
parent | 750caf0deac8059648b2b3c9259b472a2eb4657a (diff) | |
download | gcc-eeaf420b472bc097709c69c5509b43b5693b3cab.zip gcc-eeaf420b472bc097709c69c5509b43b5693b3cab.tar.gz gcc-eeaf420b472bc097709c69c5509b43b5693b3cab.tar.bz2 |
*** empty log message ***
From-SVN: r17202
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.benjamin/tem01.C | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/tem01.C b/gcc/testsuite/g++.old-deja/g++.benjamin/tem01.C index b8b546d..e464c0e 100644 --- a/gcc/testsuite/g++.old-deja/g++.benjamin/tem01.C +++ b/gcc/testsuite/g++.old-deja/g++.benjamin/tem01.C @@ -1,10 +1,6 @@ // Build don't link: // prms-id: 13911 - - - - template<unsigned int N> class ref_counter { public: @@ -38,12 +34,12 @@ public: ref_pointer(T* just_newed) : the_p(just_newed) {} virtual ~ref_pointer() {if (unique()) delete the_p;} protected: - ref_pointer::ref_pointer(T* the_p_arg, ref_counter<N>& ref_count_arg) + ref_pointer(T* the_p_arg, ref_counter<N>& ref_count_arg) : the_p(the_p_arg), ref_count(ref_count_arg) {} public: - ref_pointer& operator=(const ref_pointer<T, N>&); + ref_pointer& operator=(const ref_pointer&); ref_pointer& operator=(T*); operator const T*() const {return the_p;} T* operator()() {return the_p;} |