Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Sylvain Joubert
KWSys
Commits
fe4cf16a
Commit
fe4cf16a
authored
18 years ago
by
Brad King
Browse files
Options
Downloads
Patches
Plain Diff
COMP: Fix for auto_ptr_ref on Borland 5.8.
parent
a97a3b39
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
auto_ptr.hxx.in
+10
-5
10 additions, 5 deletions
auto_ptr.hxx.in
with
10 additions
and
5 deletions
auto_ptr.hxx.in
+
10
−
5
View file @
fe4cf16a
...
...
@@ -17,15 +17,20 @@
namespace @KWSYS_NAMESPACE@
{
template <class X> class auto_ptr;
// The auto_ptr_ref template is supposed to be a private member of
// auto_ptr but Borland 5.8 cannot handle it.
template <class Y> struct auto_ptr_ref
{
auto_ptr<Y>& p_;
explicit auto_ptr_ref(auto_ptr<Y>& p): p_(p) {}
};
// C++98 Standard Section 20.4.5 - Template class auto_ptr.
template <class X>
class auto_ptr
{
template <class Y> struct auto_ptr_ref
{
auto_ptr<Y>& p_;
explicit auto_ptr_ref(auto_ptr<Y>& p): p_(p) {}
};
X* x_;
public:
typedef X element_type;
...
...
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