Opened 11 years ago

Closed 10 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:


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@…> 11 years ago.
failed example.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by Shunsuke Sogame <pstade.mb@…>

Attachment: bll_deref.cpp added

failed example.

comment:1 Changed 11 years ago by Marshall Clow

Component: Nonelambda
Owner: set to No-Maintainer

comment:2 Changed 10 years ago by Steven Watanabe

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.