Opened 14 years ago

Closed 12 years ago

#1992 closed Bugs (fixed)

boost::mpl::zip_view does not support use as a metafunction with ::type

Reported by: John Bytheway <jbytheway@…> Owned by: anonymous
Milestone: Boost 1.43.0 Component: mpl
Version: Boost 1.43.0 Severity: Problem
Keywords: Cc:

Description

According to the zip_view documentation (under Expression Semantics) you can use zip_view as a metafunction (i.e. zip_view<seq>::type as well as just zip_view<seq>), but this doesn't work. The zip_view class contains no definition of type, so it couldn't possibly work.

I attach an example program exhibiting the bug and a trivial patch for zip_view.hpp which I believe defines type appropriately, fixing the bug.

Attachments (2)

mpl-zip_view-bug.cpp (164 bytes ) - added by John Bytheway <jbytheway@…> 14 years ago.
mpl-zip_view-bug.patch (370 bytes ) - added by John Bytheway <jbytheway@…> 14 years ago.

Download all attachments as: .zip

Change History (4)

by John Bytheway <jbytheway@…>, 14 years ago

Attachment: mpl-zip_view-bug.cpp added

by John Bytheway <jbytheway@…>, 14 years ago

Attachment: mpl-zip_view-bug.patch added

comment:1 by anonymous, 13 years ago

Milestone: Boost 1.36.0To Be Determined
Owner: changed from Aleksey Gurtovoy to anonymous
Status: newassigned
Version: Boost 1.35.0Boost Development Trunk

comment:2 by anonymous, 12 years ago

Milestone: To Be DeterminedBoost 1.43.0
Resolution: fixed
Status: assignedclosed
Version: Boost Development TrunkBoost 1.43.0
Note: See TracTickets for help on using tickets.