Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
eeaf420b
Commit
eeaf420b
authored
Dec 23, 1997
by
Benjamin Kosnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r17202
parent
750caf0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
gcc/testsuite/g++.old-deja/g++.benjamin/tem01.C
+2
-6
No files found.
gcc/testsuite/g++.old-deja/g++.benjamin/tem01.C
View file @
eeaf420b
// 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
;}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment