Opened 18 years ago

Closed 18 years ago

Last modified 15 years ago

#312 closed Bugs (Invalid)

shared_ptr::operator-> () const return type should be const

Reported by: vzaznobin Owned by: Peter Dimov
Milestone: Component: smart_ptr
Version: None Severity:
Keywords: Cc:

Description

shared_ptr::operator-> () const
 return type should be const

const T * operator-> () const;
T * operator-> ();

Change History (7)

comment:1 by Peter Dimov, 18 years ago

Logged In: YES 
user_id=305912

Not a bug. shared_ptr follows raw pointers in their
treatment of const. shared_ptr<T const> and shared_ptr<T>
const are distinct types, similar to T const * and T * const.

comment:2 by Peter Dimov, 18 years ago

Status: assignedclosed

comment:3 by vzaznobin, 18 years ago

Logged In: YES 
user_id=1151633

Thank you for submitting a bug report to BOOST

comment:4 by vzaznobin, 18 years ago

Logged In: YES 
user_id=1151633

Ok!

comment:5 by vzaznobin, 18 years ago

Logged In: YES 
user_id=1151633

Thank you for submitting a bug report to BOOST

comment:6 by vzaznobin, 18 years ago

Logged In: YES 
user_id=1151633

Ok!

comment:7 by yfia@…, 15 years ago

Hi, I have a question and I hope that I find answer. I look for the implementation of shared_ptr class, (operators overload, constructor, unique (), count_ptr ()). Thanks in advance

Note: See TracTickets for help on using tickets.