Opened 15 years ago

Closed 13 years ago

#1572 closed Bugs (fixed)

[lambda] smart pointer const-ness affects its contents

Reported by: Shunsuke Sogame <pstade.mb@…> Owned by: No-Maintainer
Milestone: Boost 1.36.0 Component: lambda
Version: Boost 1.34.1 Severity: Problem
Keywords: lambda Cc:

Description

A dereference of const smart pointers/iterators is not "writable". e.g., (*bll::_1)(x) = y; doesn't compile. This seems a defect, IMO. See also attached file.

Attachments (1)

bll_deref.cpp (1.0 KB ) - added by Shunsuke Sogame <pstade.mb@…> 15 years ago.
failed example.

Download all attachments as: .zip

Change History (3)

by Shunsuke Sogame <pstade.mb@…>, 15 years ago

Attachment: bll_deref.cpp added

failed example.

comment:1 by Marshall Clow, 15 years ago

Component: Nonelambda
Owner: set to No-Maintainer

comment:2 by Steven Watanabe, 13 years ago

Resolution: fixed
Status: newclosed

(In [53651]) Don't propagate constness from pointer to pointee. Fixes #1572

Note: See TracTickets for help on using tickets.