Modify

Opened 9 years ago

Last modified 5 years ago

#2249 new Bugs

MPL::switch_ not working and not documented

Reported by: Joel Falcou <joel.falcou@…> Owned by: Aleksey Gurtovoy
Milestone: Boost 1.37.0 Component: mpl
Version: Boost 1.36.0 Severity: Problem
Keywords: Cc:

Description

Seems the current swich_ implementations uses lambda<> where it shouldn't. Moreover, there is no documentation for switch_.

Here's a link to a working code with added default_ and case_ meta-functions (for purely cosmetic feature, remove if uneeded).

http://codepad.org/OOZ7riiy

Here's a link to a sample usage. http://codepad.org/Vho6k97u

Attachments (0)

Change History (3)

comment:1 Changed 9 years ago by Marshall Clow

Component: Nonempl
Owner: set to Aleksey Gurtovoy

comment:2 Changed 5 years ago by rpavlik@…

This should either be fixed (the "working" version didn't work for me, sadly) and documented, or removed. As it stands, it is a disappointing glimmer of hope.

comment:3 Changed 5 years ago by Joel Falcou

What's the actual problem with the "working" code ? This may need to be updated.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Aleksey Gurtovoy.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.