Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Koch
dune-common
Commits
cc4fcf8e
Commit
cc4fcf8e
authored
15 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
Remove method deallocate() which is not part of the standard.
A proper cast-to-bool is still missing. [[Imported from SVN: r5734]]
parent
f2cd0170
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/common/shared_ptr.hh
+0
-13
0 additions, 13 deletions
dune/common/shared_ptr.hh
with
0 additions
and
13 deletions
dune/common/shared_ptr.hh
+
0
−
13
View file @
cc4fcf8e
...
...
@@ -95,12 +95,6 @@ namespace Dune
*/
inline
void
reset
();
/**
* @brief Deallocates the references object if no other
* pointers reference it.
*/
inline
void
deallocate
();
/** \brief The number of shared_ptrs pointing to the object we point to */
int
use_count
()
const
;
...
...
@@ -197,13 +191,6 @@ namespace Dune
}
}
template
<
class
T
>
inline
void
shared_ptr
<
T
>::
deallocate
()
{
assert
(
rep_
!=
0
&&
rep_
->
count_
==
1
);
delete
rep_
;
rep_
=
0
;
}
/** @} */
#endif // #ifdef SHARED_PTR_NAMESPACE
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment